This commit is contained in:
Luk
2024-07-02 21:23:25 +08:00
parent 891b4a1a6e
commit 5dcf13d6d2
2 changed files with 8 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ privateKeyPaths=($(jq -r '.["sshfs.configs"][] | .privateKeyPath' "$SETTINGS_FIL
if [ "$1" -ge 0 ] 2>/dev/null && [ "$1" -le ${#hosts[@]} ] 2>/dev/null
then
selected_index=$1
selected_index=$1-1
else
echo "Select a target to connect via SSH:"
select target in "${labels[@]}"