Commit 88578e32 authored by Hunter Loftis's avatar Hunter Loftis

send output through awk

parent 232b2be3
......@@ -2,15 +2,15 @@ info() {
echo " $*"
}
# sed's buffer can't hold some of the huge build output from JS asset builders
# try awk next? awk '{ print " " $0 }'
# sed has a problem with the huge build output from npm 3
# try awk? awk '{ print " " $0 }'
output() {
local logfile="$1"
local c='s/^/ /'
case $(uname) in
Darwin) tee -a "$logfile";;
*) tee -a "$logfile";;
Darwin) tee -a "$logfile" | awk '{ print " " $0 }';;
*) tee -a "$logfile" | awk -W interactive '{ print " " $0 }';;
esac
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment