script: separate moonraker removal with whiptail

This commit is contained in:
Yifei Ding
2021-11-13 12:29:34 -08:00
parent 17ca9e50a0
commit 68bedd7218
2 changed files with 21 additions and 27 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash
remove_moonraker_yesno(){
whiptail --title "Remove" \
--yesno \
"Do you want to remove Moonraker afterwards?
This is useful in case you want to switch from a single-instance to a multi-instance installation, which makes a re-installation of Moonraker necessary.
If for any other reason you only want to uninstall Klipper, please select 'No' and continue." \
"$KIAUH_WHIPTAIL_NORMAL_HEIGHT" "$KIAUH_WHIPTAIL_NORMAL_WIDTH"
local out=$?
if [ $out -eq 0 ]; then
REM_MR="true"
else
REM_MR="false"
}