rclone_sync-menu.sh 597 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. }