Skip to content

Commit

Permalink
Fix bash if condition (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortinger91 committed Oct 18, 2023
1 parent f14d3d5 commit 6e115bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProjectFolder/scripts/create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fi

cmake -SProjectFolder --preset Release -DBUILD_TESTS=$BUILD_TESTS
RESULT=$?
if [ $RESULT -ne 0 ]; then
if [ "$RESULT" -ne 0 ]; then
exit $RESULT
fi

Expand All @@ -39,7 +39,7 @@ cpu_count=$((cpu_count - 1))
echo "Bulding Release version using ${cpu_count} threads..."
cmake --build build/Release/ -j$cpu_count
RESULT=$?
if [ $RESULT -ne 0]; then
if [ "$RESULT" -ne 0 ]; then
exit $RESULT
fi
echo "Finished building Release!"
Expand Down

0 comments on commit 6e115bd

Please sign in to comment.