diff --git a/xCAT-server/sbin/runcmdinstaller b/xCAT-server/sbin/runcmdinstaller index 3b51020de..438db3f31 100755 --- a/xCAT-server/sbin/runcmdinstaller +++ b/xCAT-server/sbin/runcmdinstaller @@ -7,7 +7,12 @@ awk -v argc="$#" -v node="$1" -v cmd="$2" 'BEGIN { port = 3001 action = "sh" -if( node=="-h" || argc !=2 || ! node || ! cmd){ +if(node=="-h"){ + print "Usage:\n\n runcmdinstaller \"\"\n" + print " make sure all the commands are quoted by \"\"\n"; + exit 0; +} +if(argc !=2 || ! node || ! cmd){ print "Usage:\n\n runcmdinstaller \"\"\n" print " make sure all the commands are quoted by \"\"\n"; exit 1;