Skip to content

Commit 7f2ff43

Browse files
committed
Fix syntax errors in installation script
1 parent f838096 commit 7f2ff43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/install-kani.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ cargo-kani setup;
2424
# Get the current installed version of kani and check it against the latest version
2525
installed_version=$(kani --version | awk '{print $2}')
2626

27-
if [$? -eq 0]; then
27+
if [ $? -eq 0 ]; then
2828
if [ "$1" == "latest" ]; then
2929
# Cargo search returns version number as string
30-
requested_version=$(cargo search kani-verifier | grep -m 1 "^kani-verifier " | awk '{print $3}')
30+
requested_version=$(cargo search kani-verifier | grep -m 1 "kani-verifier" | awk '{print $3}' | tr -d '"')
3131
else
3232
requested_version=$1
3333
fi
3434

35-
if ["$installed_version" != "$requested_version"]; then
35+
if [ "$installed_version" != "$requested_version" ]; then
3636
echo "::error::The version of Kani installed was different than the one requested"
3737
exit 1
3838
fi

0 commit comments

Comments
 (0)