Skip to content

Commit c11be06

Browse files
committed
Shellcheck: SC2164 Use 'cd ... || exit' or 'cd ... || return' in case cd fails
1 parent cce56a9 commit c11be06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fatal() {
1616
exit 1
1717
}
1818

19-
cd "$(cd "${0%/*}" && pwd -P)";
19+
cd "$(cd "${0%/*}" && pwd -P)" || exit;
2020

2121
versions=( "$@" )
2222
if [ ${#versions[@]} -eq 0 ]; then

0 commit comments

Comments
 (0)