From 0a933edc68db66ef8de93de904d47ca1e3cb2cf5 Mon Sep 17 00:00:00 2001 From: Guillaume Archambault <67098259+Gu1llaum-3@users.noreply.github.com> Date: Sun, 20 Oct 2024 16:05:02 +0200 Subject: [PATCH] Update sshm.bash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Erreur à la ligne 84 --- sshm.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshm.bash b/sshm.bash index 1298ffc..2d1dc70 100755 --- a/sshm.bash +++ b/sshm.bash @@ -81,7 +81,7 @@ ssh_manager_connect() { if [[ "$host" =~ ^[0-9]+$ ]]; then local host_name host_name=$(grep -E '^Host ' "$config_file" | awk '{print $2}' | grep -v '^#' | sed -n "${host}p") - if [ -n "$host_name" ]]; then + if [[ -n "$host_name" ]]; then ssh -F "$config_file" "$host_name" else echo "Invalid number." 1>&2