Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Please codefactor.io/ShellCheck.
[simgrid.git] / tools / jenkins / Flags.sh
index 9d35d4a..06c5667 100755 (executable)
@@ -2,7 +2,7 @@
 
 set -e
 
-echo "Starting Flags.sh $@" 
+echo "Starting Flags.sh $*"
 
 die() {
     echo "$@"
@@ -72,14 +72,14 @@ else
   builddebug="OFF"
 fi
 
-if [ $4 = "MSG" ]
+if [ $5 = "MSG" ]
 then
   buildmsg="ON"
 else
   buildmsg="OFF"
 fi
 
-if [ $buildmsg = "OFF" -a $buildjava = "ON" ] 
+if [ $buildmsg = "OFF" ] && [ $buildjava = "ON" ]
 then
   echo "Don't even try to build Java without MSG"
   exit 0