mirror of
https://github.com/Febbweiss/rclone_script.git
synced 2026-03-04 22:25:36 +00:00
renamed rclone_sync-menu.sh to rclone_script-menu.sh
This commit is contained in:
40
rclone_script-menu.sh
Normal file
40
rclone_script-menu.sh
Normal file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
NORMAL="\Zn"
|
||||
BLACK="\Z0"
|
||||
RED="\Z1"
|
||||
GREEN="\Z2"
|
||||
YELLOW="\Z3"
|
||||
BLUE="\Z4"
|
||||
MAGENTA="\Z5"
|
||||
CYAN="\Z6"
|
||||
WHITE="\Z7"
|
||||
BOLD="\Zb"
|
||||
REVERSE="\Zr"
|
||||
UNDERLINE="\Zu"
|
||||
|
||||
|
||||
function main_menu ()
|
||||
{
|
||||
local choice
|
||||
|
||||
while true
|
||||
do
|
||||
choice=$(dialog \
|
||||
--stdout \
|
||||
--ascii-lines \
|
||||
--backtitle "RCLONE_SCRIPT menu" \
|
||||
--title "main menu" \
|
||||
--menu "\nWhat do you want to do?" 25 75 20 \
|
||||
1 "Full sync" \
|
||||
9 "uninstall"
|
||||
)
|
||||
|
||||
case "$choice" in
|
||||
1) ~/scripts/rclone_script/rclone_script.sh "full" ;;
|
||||
9) ~/scripts/rclone_script/rclone_script-uninstall.sh
|
||||
*) break ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user