diff options
Diffstat (limited to 'lib/subcommands/ssh.bash')
-rw-r--r-- | lib/subcommands/ssh.bash | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/subcommands/ssh.bash b/lib/subcommands/ssh.bash index 563aa73..3a781f3 100644 --- a/lib/subcommands/ssh.bash +++ b/lib/subcommands/ssh.bash @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl> +# SPDX-FileCopyrightText: 2023 Patrick Spek <p.spek@tyil.nl> # # SPDX-License-Identifier: AGPL-3.0-or-later @@ -20,7 +20,7 @@ subcommand() local host user="$(config_for "$node" "bashtard.ssh.user" "$USER")" - host="$(config_for "$node" "bashtard.ssh.host" "$(config_for "$node" "vpn.ipv4")")" + host="$(config_for "$node" "bashtard.ssh.host")" if [[ -z "$host" ]] then @@ -30,6 +30,7 @@ subcommand() notice "$BASHTARD_NAME/ssh" "$user@$node ($host) > $*" + # shellcheck disable=SC2029 ssh "$user@$host" "$@" unset user |