fix: Use correct path for ssh configuration file

This commit is contained in:
AbelAnaya 2023-11-06 22:21:57 +01:00
parent bda4fdaf21
commit ac4639be61

View file

@ -30,7 +30,7 @@ get_ssh_user() {
$1 = "";
sub( /^[[:space:]]*/, "" );
printf "%s|%s\n", host, $0;
}' .ssh/config`; do
}' /etc/ssh/ssh_config`; do
local host_regex=${ssh_config%|*}
local host_user=${ssh_config#*|}
if [[ "$1" =~ $host_regex ]]; then