fix auto-copy-ssh-id

This commit is contained in:
Lockszmith (@VAST) 2025-03-10 16:48:22 -04:00
parent d2c18372f4
commit 23827f2d1d
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ ssh_do() {
ssh \ ssh \
-o PasswordAuthentication=no \ -o PasswordAuthentication=no \
-o LogLevel=ERROR \ -o LogLevel=ERROR \
-o BatchMode \ -o BatchMode=yes \
-o ConnectionTimeout=2 \ -o ConnectTimeout=2 \
-ttn \ -ttn \
"${USER:+${USER}@}${HOST}" -- "${@:3}" \ "${USER:+${USER}@}${HOST}" -- "${@:3}" \
|| (printf '\n'; printf 'Exit code: %s\n' "$?" >&2) || (printf '\n'; printf 'Exit code: %s\n' "$?" >&2)