1
0
forked from finn/tinyboard

syncthing.sh, README.md: change syncthing menu to 0-based indexing

This commit is contained in:
Justin Oros
2026-04-18 18:57:36 -07:00
parent c2aec56490
commit 982b8a8641
2 changed files with 30 additions and 30 deletions

View File

@@ -121,16 +121,16 @@ Entry point. Presents a menu:
### `syncthing.sh` ### `syncthing.sh`
Interactive Syncthing management. Can be run on the hub or any spoke. Presents a menu: Interactive Syncthing management. Can be run on the hub or any spoke. Presents a menu:
- 1) Show This Device's ID - 0) Show This Device's ID
- 2) Pending Devices - 1) Pending Devices
- 3) List Devices - 2) List Devices
- 4) Add Device - 3) Add Device
- 5) Remove Device - 4) Remove Device
- 6) List Folders - 5) List Folders
- 7) Add Folder - 6) Add Folder
- 8) Remove Folder - 7) Remove Folder
- 9) Share Folder with Device - 8) Share Folder with Device
- 10) Unshare Folder from Device - 9) Unshare Folder from Device
Requires Docker and a running Syncthing container. Auto-discovers the container and API key. Requires Docker and a running Syncthing container. Auto-discovers the container and API key.

View File

@@ -403,31 +403,31 @@ get_apikey
while true; do while true; do
header "Syncthing Manager" header "Syncthing Manager"
echo " 1) Show This Device's ID" echo " 0) Show This Device's ID"
echo " 2) Pending Devices" echo " 1) Pending Devices"
echo " 3) List Devices" echo " 2) List Devices"
echo " 4) Add Device" echo " 3) Add Device"
echo " 5) Remove Device" echo " 4) Remove Device"
echo " 6) List Folders" echo " 5) List Folders"
echo " 7) Add Folder" echo " 6) Add Folder"
echo " 8) Remove Folder" echo " 7) Remove Folder"
echo " 9) Share Folder with Device" echo " 8) Share Folder with Device"
echo " 10) Unshare Folder from Device" echo " 9) Unshare Folder from Device"
echo " q) Quit" echo " q) Quit"
echo "" echo ""
read -rp "Choose: " OPT read -rp "Choose: " OPT
echo "" echo ""
case "$OPT" in case "$OPT" in
1) show_own_device_id ;; 0) show_own_device_id ;;
2) show_pending_devices ;; 1) show_pending_devices ;;
3) list_devices ;; 2) list_devices ;;
4) add_device ;; 3) add_device ;;
5) remove_device ;; 4) remove_device ;;
6) list_folders ;; 5) list_folders ;;
7) add_folder ;; 6) add_folder ;;
8) remove_folder ;; 7) remove_folder ;;
9) share_folder ;; 8) share_folder ;;
10) unshare_folder ;; 9) unshare_folder ;;
q|Q) echo "Bye."; exit 0 ;; q|Q) echo "Bye."; exit 0 ;;
*) warn "Invalid choice." ;; *) warn "Invalid choice." ;;
esac esac