File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ cargo-kani setup;
2424# Get the current installed version of kani and check it against the latest version
2525installed_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
You can’t perform that action at this time.
0 commit comments