From 9048475efd2aa02b8ee2c4b028b3136564057928 Mon Sep 17 00:00:00 2001 From: BonzaiBrains <133261117+BonzaiBrains@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:41:40 +0100 Subject: [PATCH] add: remove function --- shemum | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/shemum b/shemum index 141698b..9c95ae1 100755 --- a/shemum +++ b/shemum @@ -42,6 +42,15 @@ case $OS_NAME in ;; esac +# Functions + +# Virtual machine removal +remove function { + rm -r $ROOT_PATH/$OS_NAME +} + + + # Options case $OPTION in # Initializes the VM and starts the installer image. @@ -76,7 +85,7 @@ case $OPTION in -m $RAM -smp $CPU ;; "remove") - rm -r $ROOT_PATH/$OS_NAME + remove ;; *) echo "Usage: shemum [init] "