mirror of https://github.com/dense-analysis/ale
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
|
@ -16,8 +16,6 @@ temp_dir=$(mktemp -d 2>/dev/null || mktemp -d -t 'ale_linter')
|
||||||
temp_file="$temp_dir/file$file_extension"
|
temp_file="$temp_dir/file$file_extension"
|
||||||
trap 'rm -r "$temp_dir"' EXIT
|
trap 'rm -r "$temp_dir"' EXIT
|
||||||
|
|
||||||
while read -r; do
|
cat > "$temp_file"
|
||||||
echo "$REPLY" >> "$temp_file"
|
|
||||||
done
|
|
||||||
|
|
||||||
"$@" "$temp_file"
|
"$@" "$temp_file"
|
||||||
|
|
Loading…
Reference in New Issue