fix: fix a bug that potentially caused writing a wrong config directory path to the moonraker.service file under special conditions

This commit is contained in:
th33xitus
2021-04-03 19:29:59 +02:00
parent 49b77162b0
commit 40ba33eb19
3 changed files with 27 additions and 23 deletions

View File

@@ -104,7 +104,7 @@ remove_klipper(){
CONFIRM_MSG=" Klipper was successfully removed!" && print_msg && clear_msg
if [ "$REM_MR" == "true" ]; then
remove_moonraker
remove_moonraker && unset REM_MR
fi
}