add: remove function

This commit is contained in:
BonzaiBrains 2024-10-31 12:41:40 +01:00 committed by GitHub
parent ad8a0782ae
commit 9048475efd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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>"