changed while read -r loop to cat > for portability and simplicity (#165)
* changed while read -r loop to cat > for portability and simplicity * typo fix
This commit is contained in:
parent
ec2845eefa
commit
60b89abd9c
1 changed files with 1 additions and 3 deletions
|
@ -16,8 +16,6 @@ temp_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'ale_linter')
|
|||
temp_file="$temp_dir/file$file_extension"
|
||||
trap 'rm -r "$temp_dir"' EXIT
|
||||
|
||||
while read -r; do
|
||||
echo "$REPLY" >> "$temp_file"
|
||||
done
|
||||
cat > "$temp_file"
|
||||
|
||||
"$@" "$temp_file"
|
||||
|
|
Reference in a new issue