Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
check if smpirun has something to execute
authorLucas Schnorr <Lucas.Schnorr@imag.fr>
Thu, 28 Apr 2011 08:52:06 +0000 (10:52 +0200)
committerLucas Schnorr <Lucas.Schnorr@imag.fr>
Thu, 28 Apr 2011 08:52:06 +0000 (10:52 +0200)
src/smpi/smpirun.in

index 07c97f7..aea4116 100755 (executable)
@@ -115,6 +115,13 @@ shift
 
 ##-----------------------------------
 
+# test if we have something to execute, otherwise show usage and exit
+if [ -z ${EXEC} ]
+then
+    echo "Program is missing"
+    usage
+    exit 1
+fi