mkvm options

This commit is contained in:
phil 2024-01-15 00:02:43 +01:00
parent beca7dbdcc
commit c03c066d41

View File

@ -61,16 +61,19 @@ fi
if [[ $1 == "--help" ]] || [[ $1 == "-h" ]] || [[ $1 == "-V" ]] ; then if [[ $1 == "--help" ]] || [[ $1 == "-h" ]] || [[ $1 == "-V" ]] ; then
usage usage
fi fi
if [[ $1 == "-s" ]] ; then while [[ -n "$1" ]] ; do
if [[ "$1" == "-s" ]] ; then
startmode=1 startmode=1
shift shift
fi elif [[ "$1" == "-r" ]] ; then
if [[ $1 == "-r" ]] ; then
deletemode=1 deletemode=1
shift shift
else
parm=$1
shift
fi fi
vm="$1" done
vm="${parm}"
create_vm "${vm}" create_vm "${vm}"
if [[ "${vm}" == "s-adm" ]] ; then if [[ "${vm}" == "s-adm" ]] ; then
bash addint.s-adm bash addint.s-adm