Skip to content

Commit 7e692bb

Browse files
authored
Fix syntax errors in Kissat checking script (rust-lang#2769)
1 parent eb62ad8 commit 7e692bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/check_kissat_version.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ source "${KANI_DIR}/kani-dependencies"
1111

1212
if [ -z "${KISSAT_VERSION:-}" ]; then
1313
echo "$0: ERROR: KISSAT_VERSION is not set"
14-
return 1
14+
exit 1
1515
fi
1616
cmd="kissat --version"
1717
if kissat_version=$($cmd); then
1818
# Perform a lexicographic comparison of the version
1919
if [[ $kissat_version < $KISSAT_VERSION ]]; then
2020
echo "ERROR: Kissat version is $kissat_version. Expected at least $KISSAT_VERSION."
21-
return 1
21+
exit 1
2222
fi
2323
else
2424
echo "ERROR: Couldn't run command '$cmd'"
25-
return 1
25+
exit 1
2626
fi

0 commit comments

Comments
 (0)