From: Lucas Schnorr Date: Thu, 28 Apr 2011 08:52:06 +0000 (+0200) Subject: check if smpirun has something to execute X-Git-Tag: v3_6_rc3~79 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/121308658776d576eb7c84215779f2014713a455 check if smpirun has something to execute --- diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 07c97f77c9..aea4116b55 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -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