Skip to content

Commit

Permalink
better checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Apr 8, 2024
1 parent 9690af0 commit 83c2e2c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion redo-everything-from-scratch
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,18 @@ restart=$1
compiler=$2
branch=$3

if [ "$compiler" == "" ];
if [ "$compiler" == "" ]
then
compiler=g++
else
if [ "$compiler" != "g++" ] \
&& [ "$compiler" != "clang++" ] \
&& [ "$compiler" != "clang++-14" ] \
&& [ "$compiler" != "clang++-15" ]
then
echo "compiler must be c++ or clang++[-14|15]"
exit
fi
fi

echo -n "Rebuilding ALL with $compiler "
Expand Down

0 comments on commit 83c2e2c

Please sign in to comment.