Print command line options if run_command() failed.

This commit is contained in:
Tadahito Yao 2021-03-22 20:46:44 +09:00
parent 7d17b72ba5
commit 3b436a72c5

View File

@ -79,7 +79,7 @@ run_command() {
shift shift
tlog "[$(date)] ${cmd} $@" tlog "[$(date)] ${cmd} $@"
if ! "${cmd}" "$@" 2>&1 | tee -a "${LOG_FILE}"; then if ! "${cmd}" "$@" 2>&1 | tee -a "${LOG_FILE}"; then
err_exit "Program $(basename ${cmd}) failed. Abort." err_exit "Program $(basename ${cmd}) failed. Abort. Command line: ${cmd} $@"
fi fi
} }