Functions #1

Merged
BonzaiBrains merged 5 commits from functions into master 2024-10-31 12:02:41 +00:00
Showing only changes of commit 9048475efd - Show all commits

11
shemum
View file

@ -42,6 +42,15 @@ case $OS_NAME in
;; ;;
esac esac
# Functions
# Virtual machine removal
remove function {
rm -r $ROOT_PATH/$OS_NAME
}
# Options # Options
case $OPTION in case $OPTION in
# Initializes the VM and starts the installer image. # Initializes the VM and starts the installer image.
@ -76,7 +85,7 @@ case $OPTION in
-m $RAM -smp $CPU -m $RAM -smp $CPU
;; ;;
"remove") "remove")
rm -r $ROOT_PATH/$OS_NAME remove
;; ;;
*) *)
echo "Usage: shemum [init] <virtual machine name> <disk size>" echo "Usage: shemum [init] <virtual machine name> <disk size>"