aboutsummaryrefslogtreecommitdiff
path: root/bin/muffle
diff options
context:
space:
mode:
Diffstat (limited to 'bin/muffle')
-rwxr-xr-xbin/muffle6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/muffle b/bin/muffle
index 6f93306..35d1ee6 100755
--- a/bin/muffle
+++ b/bin/muffle
@@ -83,10 +83,10 @@ STATUS="$(cat "$STATUS_F")"
if [ "$STATUS" != 0 ]; then
cat "$OUT" "$ERR" |
sort -k2 | while read -r line; do
- if [ "$(echo "$line" | cut -d' ' -f1)" = 'out:' ]; then
- echo "$line" | cut -d' ' -f3- >&1
+ if [ "$(printf '%s\n' "$line" | cut -d' ' -f1)" = 'out:' ]; then
+ printf '%s\n' "$line" | cut -d' ' -f3- >&1
else
- echo "$line" | cut -d' ' -f3- >&2
+ printf '%s\n' "$line" | cut -d' ' -f3- >&2
fi
done
exit "$STATUS"