From 1054c0d48fb582c65bf52bf10e55c2789496855d Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Mon, 28 Sep 2020 11:55:14 +0100 Subject: [PATCH] Cheer up shellcheck --- ci/lint.sh | 4 ++-- ci/mozilla.sh | 2 +- ci/unit.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/lint.sh b/ci/lint.sh index 1422628f..7ae8192b 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -1,7 +1,7 @@ #!/bin/sh -cd ${0%/*}/.. +cd "${0%/*}"/.. || exit 1 if [ -x "$(command -v shellcheck)" ]; then - GLOBIGNORE="node_modules" shellcheck -e2012 **/*.sh + GLOBIGNORE="node_modules" shellcheck -e2012 ./**/*.sh else echo "Warning: shellcheck is not installed, skipping shell scripts" fi diff --git a/ci/mozilla.sh b/ci/mozilla.sh index 5d89d437..e8874674 100755 --- a/ci/mozilla.sh +++ b/ci/mozilla.sh @@ -1,4 +1,4 @@ #! /bin/sh yarn run build --no-native -cd ${0%/*}/../build +cd "${0%/*}"/../build || exit 1 "$(yarn bin)/web-ext" lint diff --git a/ci/unit.sh b/ci/unit.sh index 5104b53f..3c878270 100755 --- a/ci/unit.sh +++ b/ci/unit.sh @@ -1,4 +1,4 @@ #! /bin/sh -cd ${0%/*} +cd "${0%/*}" || exit yarn run build --no-native "$(yarn bin)/jest" src