catalyst-auto: log the command in the log file itself

This should make it clear in each log file what is being run, especially
when a phase is run more than once (like post_build).
This commit is contained in:
Mike Frysinger 2018-01-15 22:42:07 -05:00
parent f98bc791e6
commit bbca329576

View file

@ -70,6 +70,7 @@ run_cmd() {
local logfile="$1"
shift
echo "*** Running command: $*" &>> "${logfile}"
if [ $verbose = 2 ]; then
echo "*** Running command: $*"
"$@" 2>&1 | tee -a "${logfile}"