From 1de54d52ac79109ab064bbe01f9a820d3be15a92 Mon Sep 17 00:00:00 2001 From: Dan Callahan Date: Mon, 2 Nov 2015 17:20:54 -0600 Subject: [PATCH] Resolve SC2164: 'Use cd ... || exit in case cd fails.' https://github.com/koalaman/shellcheck/wiki/SC2164 --- tests/unit/test_helper.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_helper.bash b/tests/unit/test_helper.bash index 32cba7a27..349c609d7 100644 --- a/tests/unit/test_helper.bash +++ b/tests/unit/test_helper.bash @@ -112,7 +112,7 @@ deploy_app() { GIT_REMOTE="$2"; GIT_REMOTE=${GIT_REMOTE:="dokku@dokku.me:$TEST_APP"} TMP=$(mktemp -d -t "dokku.me.XXXXX") rmdir $TMP && cp -r ./tests/apps/$APP_TYPE $TMP - cd $TMP + cd $TMP || exit 1 git init git config user.email "robot@example.com" git config user.name "Test Robot" @@ -128,7 +128,7 @@ deploy_app() { setup_client_repo() { TMP=$(mktemp -d -t "dokku.me.XXXXX") rmdir $TMP && cp -r ./tests/apps/nodejs-express $TMP - cd $TMP + cd $TMP || exit 1 git init git config user.email "robot@example.com" git config user.name "Test Robot"