mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-05-13 13:58:57 +00:00
Remote set -x
This commit is contained in:
parent
11a48e7c52
commit
9bbe489785
16 changed files with 16 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue