mirror of
https://github.com/Gu1llaum-3/sshm.git
synced 2025-12-06 02:48:28 +01:00
Update sshm.bash
Erreur à la ligne 84
This commit is contained in:
parent
670e41f726
commit
0a933edc68
@ -81,7 +81,7 @@ ssh_manager_connect() {
|
|||||||
if [[ "$host" =~ ^[0-9]+$ ]]; then
|
if [[ "$host" =~ ^[0-9]+$ ]]; then
|
||||||
local host_name
|
local host_name
|
||||||
host_name=$(grep -E '^Host ' "$config_file" | awk '{print $2}' | grep -v '^#' | sed -n "${host}p")
|
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"
|
ssh -F "$config_file" "$host_name"
|
||||||
else
|
else
|
||||||
echo "Invalid number." 1>&2
|
echo "Invalid number." 1>&2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user