1
0

rclone_script-menu.sh 612 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. NORMAL="\Zn"
  3. BLACK="\Z0"
  4. RED="\Z1"
  5. GREEN="\Z2"
  6. YELLOW="\Z3"
  7. BLUE="\Z4"
  8. MAGENTA="\Z5"
  9. CYAN="\Z6"
  10. WHITE="\Z7"
  11. BOLD="\Zb"
  12. REVERSE="\Zr"
  13. UNDERLINE="\Zu"
  14. function main_menu ()
  15. {
  16. local choice
  17. while true
  18. do
  19. choice=$(dialog \
  20. --stdout \
  21. --ascii-lines \
  22. --backtitle "RCLONE_SCRIPT menu" \
  23. --title "main menu" \
  24. --menu "\nWhat do you want to do?" 25 75 20 \
  25. 1 "Full sync" \
  26. 9 "uninstall"
  27. )
  28. case "$choice" in
  29. 1) ~/scripts/rclone_script/rclone_script.sh "full" ;;
  30. 9) ~/scripts/rclone_script/rclone_script-uninstall.sh ;;
  31. *) break ;;
  32. esac
  33. done
  34. }
  35. main_menu