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

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#

View file

@ -24,7 +24,7 @@
# WATCHTOWER_REFRESH_SECONDS: refresh interval in seconds to check for updates,
# defaults to 3600.
set -euxo pipefail
set -euo pipefail
# Re-enable password login, since DigitalOcean disables it when we create a server
# with a SSH key.

View file

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -eux
set -eu
readonly NODE_MODULES_BIN_DIR=$ROOT_DIR/src/server_manager/node_modules/.bin

View file

@ -1,4 +1,4 @@
#!/bin/bash -eux
#!/bin/bash -eu
#
# Copyright 2018 The Outline Authors
#