dispvm: by default use default dispvm-prerun script

Assume "--default-script" when no second argument given.
This commit is contained in:
Marek Marczykowski-Górecki 2014-07-02 02:31:22 +02:00
parent b81ecc4fba
commit e5a6f58851

View File

@ -20,7 +20,7 @@ if [ "$TEMPLATENAME" = --default-template ] ; then
fi
fi
if [ "X""$2" = "X""--default-script" ] ; then
if [ -z "$2" -o "X""$2" = "X""--default-script" ] ; then
SCRIPTNAME="vm-default"
else
SCRIPTNAME=$2