Remote set -x

This commit is contained in:
fortuna 2018-10-25 14:55:06 -04:00
parent 11a48e7c52
commit 9bbe489785
16 changed files with 16 additions and 18 deletions

View file

@ -30,12 +30,10 @@ function do_action() {
local action=$1
echo -e "$STYLE_BOLD_WHITE[Running $action]$STYLE_RESET"
shift
OUTPUT_FILE=$(mktemp)
if $ROOT_DIR/src/${action}_action.sh "$@" 2> $OUTPUT_FILE; then
if $ROOT_DIR/src/${action}_action.sh "$@"; then
echo -e "$STYLE_BOLD_WHITE[Done $action]$STYLE_RESET"
else
local status=$?
cat $OUTPUT_FILE >&2
echo -e "$STYLE_BOLD_RED[Failed $action]$STYLE_RESET"
return $status
fi