initial code changes
This commit is contained in:
8
menu.sh
Normal file → Executable file
8
menu.sh
Normal file → Executable file
@@ -9,7 +9,7 @@ yellow=$(echo -en "\e[93m")
|
||||
|
||||
main_menu() {
|
||||
|
||||
VERSION=1.0.11
|
||||
VERSION=0.1
|
||||
#reset
|
||||
UDEV=''
|
||||
TEMPUSB=''
|
||||
@@ -21,11 +21,11 @@ main_menu() {
|
||||
echo
|
||||
echo
|
||||
echo "${cyan}*************************${white}"
|
||||
echo "${green}octoprint_deploy${white} $VERSION"
|
||||
echo "${green}octodocker_deploy${white} $VERSION"
|
||||
echo "${cyan}*************************${white}"
|
||||
echo
|
||||
PS3="${green}Select operation: ${white}"
|
||||
if [ -f "/etc/octoprint_deploy" ]; then
|
||||
if [ -f "/etc/octodocker_deploy" ]; then
|
||||
options=("Add instance" "Delete instance" "Add USB Camera" "Add PiCam" "Delete Camera" "Utilities" "Backup Menu" "Update" "Quit")
|
||||
else
|
||||
options=("Prepare system" "Update" "Quit")
|
||||
@@ -258,7 +258,7 @@ restore_menu() {
|
||||
|
||||
clear
|
||||
PS3="${green}Select backup to restore: ${white}"
|
||||
readarray -t options < <(ls /home/$user/instance_backup/$opt-backup-*.zip)
|
||||
readarray -t options < <(ls /opt/octoprint/instance_backup/$opt-backup-*.zip)
|
||||
options+=("Quit")
|
||||
select zipfile in "${options[@]}"
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user