Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
check if smpirun has something to execute
[simgrid.git] / 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