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

send output through awk

parent 232b2be3
...@@ -2,15 +2,15 @@ info() { ...@@ -2,15 +2,15 @@ info() {
echo " $*" echo " $*"
} }
# sed's buffer can't hold some of the huge build output from JS asset builders # sed has a problem with the huge build output from npm 3
# try awk next? awk '{ print " " $0 }' # try awk? awk '{ print " " $0 }'
output() { output() {
local logfile="$1" local logfile="$1"
local c='s/^/ /' local c='s/^/ /'
case $(uname) in case $(uname) in
Darwin) tee -a "$logfile";; Darwin) tee -a "$logfile" | awk '{ print " " $0 }';;
*) tee -a "$logfile";; *) tee -a "$logfile" | awk -W interactive '{ print " " $0 }';;
esac 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