Skip to content

Commit 67c882d

Browse files
Kevinjilvmcj
authored andcommitted
Use shell compatible exit code
1 parent 1b53925 commit 67c882d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/jobs/syntax-check

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ set -euo pipefail
55
# shellcheck disable=SC2242
66

77
# Change directory to the root of the repo relative to this script file
8-
cd "$(dirname "$0")/../../" || exit -1
8+
cd "$(dirname "$0")/../../" || exit 1
99

1010
PHP=$(command -v php)
1111
if [ ! -x "$PHP" ]; then
1212
echo "PHP ($PHP) not found or not executable"
1313
# shellcheck disable=SC2242
14-
exit -1
14+
exit 1
1515
fi
1616
if [ ! -x /usr/bin/checkbashisms ]; then
1717
echo "/usr/bin/checkbashisms not found or not executable"
1818
# shellcheck disable=SC2242
19-
exit -1
19+
exit 1
2020
fi
2121
if [ ! -x /usr/bin/shellcheck ]; then
2222
echo "/usr/bin/shellcheck not found or not executable"
2323
# shellcheck disable=SC2242
24-
exit -1
24+
exit 1
2525
fi
2626

2727
find . \( \

0 commit comments

Comments
 (0)