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:
purpleP 2016-11-05 23:43:57 +03:00 committed by w0rp
parent ec2845eefa
commit 60b89abd9c

View file

@ -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"