Rename function & fix whitespace

This commit is contained in:
Evgenii Shavrin
2021-09-26 20:13:30 +03:00
parent 2f439b4815
commit 53294c9ebf
2 changed files with 3 additions and 3 deletions

View File

@@ -180,7 +180,7 @@ backup_klipperscreen(){
fi fi
} }
backup_klipperscreen(){ backup_MoonrakerTelegramBot){
if [ -d $MOONRAKER_TELEGRAM_BOT_DIR ] ; then if [ -d $MOONRAKER_TELEGRAM_BOT_DIR ] ; then
status_msg "Creating MoonrakerTelegramBot backup ..." status_msg "Creating MoonrakerTelegramBot backup ..."
check_for_backup_dir check_for_backup_dir
@@ -190,6 +190,6 @@ backup_klipperscreen(){
cp -r $MOONRAKER_TELEGRAM_BOT_DIR $_ cp -r $MOONRAKER_TELEGRAM_BOT_DIR $_
ok_msg "Backup complete!" ok_msg "Backup complete!"
else else
ERROR_MSG=" Can't backup KlipperScreen directory!\n Not found!" ERROR_MSG=" Can't backup MoonrakerTelegramBot directory!\n Not found!"
fi fi
} }

View File

@@ -42,7 +42,7 @@ backup_menu(){
8) 8)
do_action "backup_octoprint" "backup_ui";; do_action "backup_octoprint" "backup_ui";;
9) 9)
do_action "backup_MoonrakerTelegramBot" "backup_ui";; do_action "backup_MoonrakerTelegramBot" "backup_ui";;
B|b) B|b)
clear; main_menu; break;; clear; main_menu; break;;
*) *)