From 278b810c564b6261bb08b57f4c9ee4a1553d74de Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 1 Apr 2012 17:03:29 -1000 Subject: [PATCH] Basic checks on the arguments provoded to smpirun --- src/smpi/smpirun.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 0ee0445efc..a61487afcb 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -131,14 +131,18 @@ shift ##----------------------------------- -# test if we have something to execute, otherwise show usage and exit -if [ -z ${EXEC} ] -then - echo "Program is missing" +# Basic checks on the provided arguments +if [ -z ${EXEC} ] ; then + echo "You must provide a program to execute." usage exit 1 fi +if [ -z ${HOSTFILE} ] ; then + echo "No hostfile specified." + usage + exit 1 +fi ##-------------------------------- DEFAULT or SPECIFIED PLATFORM -------------------------------------- -- 2.20.1