summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpurpleP <warrior2031@mail.ru>2016-11-05 23:43:57 +0300
committerw0rp <w0rp@users.noreply.github.com>2016-11-05 20:43:57 +0000
commit60b89abd9c55d70a3a621e1563feb1afe36798a4 (patch)
treee58125401e36e6c3e4c92083b193d3c8bef7ede9
parentec2845eefad76a8afeb2a65b57b8b91ba74b0312 (diff)
downloadale-60b89abd9c55d70a3a621e1563feb1afe36798a4.zip
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
-rwxr-xr-xstdin-wrapper4
1 files changed, 1 insertions, 3 deletions
diff --git a/stdin-wrapper b/stdin-wrapper
index f81f4617..de4af0e5 100755
--- a/stdin-wrapper
+++ b/stdin-wrapper
@@ -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"