This commit is contained in:
Jeffrey Serio 2024-08-12 17:30:34 -05:00
parent eae217dc7c
commit 453bc5694d
2 changed files with 7 additions and 7 deletions

2
gumssh
View File

@ -27,6 +27,6 @@ done < "${SSH_CONFIG}"
selection=$(printf "%s\n" "${hostn_array[@]}" | gum choose --header="SSH Host" --limit=1) selection=$(printf "%s\n" "${hostn_array[@]}" | gum choose --header="SSH Host" --limit=1)
# If $selection is not aborted by user, pass it to the `autossh -M 0` command. # If $selection is not aborted by user, pass it to the `autossh -M 0` command.
if [ "${selection}" != "user aborted" ]; then if [ -n "${selection}" ]; then
autossh -M 0 "${selection}" autossh -M 0 "${selection}"
fi fi

View File

@ -124,7 +124,7 @@ gum style \
# Print the `nf_array` line by line and pipe to `gum choose --no-limit`. # Print the `nf_array` line by line and pipe to `gum choose --no-limit`.
# Create `selection` array from the output of `gum choose --no-limit`. # Create `selection` array from the output of `gum choose --no-limit`.
# It will contain only the items that were selected by the user. # It will contain only the items that were selected by the user.
selection=($(printf "%s\n" "${nf_array[@]}" | gum choose --no-limit)) mapfile -t selection < <(printf "%s\n" "${nf_array[@]}" | gum choose --no-limit)
# Prompt for user confirmation and proceed with installation of nerd fonts. # Prompt for user confirmation and proceed with installation of nerd fonts.
# #