Skip to content

Commit 14004b3

Browse files
authored
check/shellcheck - exit if it cannot reliably change to the repo_dir (#1147)
Follow-up to #1144
1 parent efb4202 commit 14004b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check/shellcheck

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
# Use the '--dry-run' option to print out the shellcheck command line without
2323
# running it. This displays all shell script files found in the repository.
2424

25-
set -uo pipefail
25+
set -euo pipefail
2626

2727
# Change working directory to the repository root.
2828
thisdir=$(dirname "${BASH_SOURCE[0]:?}")
2929
repo_dir=$(git -C "${thisdir}" rev-parse --show-toplevel)
30-
cd "${repo_dir}" || exit $?
30+
cd "${repo_dir}"
3131

3232
# Process command line arguments
3333
opt_dry_run=0

0 commit comments

Comments
 (0)