rootfs/home/andre/.bashrc aktualisiert
This commit is contained in:
@@ -131,7 +131,8 @@ cy-ssh() {
|
||||
# Versuche alternativen Hostname
|
||||
SSH_HOSTNAME="finance.conadm.de"
|
||||
if ! getent hosts "$SSH_HOSTNAME"; then
|
||||
echo "Fehler: \"finance\" und \"finance.conadm.de\" nicht auflösbar" >&2
|
||||
echo "
|
||||
! cy-ssh Fehler: \"finance\" und \"finance.conadm.de\" nicht auflösbar" >&2
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
@@ -169,7 +170,8 @@ cy-ssh() {
|
||||
"${CMD[@]}"
|
||||
local exit_code=$?
|
||||
if [ $exit_code -ne 0 ]; then
|
||||
echo "SSH-Verbindung fehlgeschlagen (Exit-Code: $exit_code)"
|
||||
echo "
|
||||
! cy-ssh Fehler: SSH-Verbindung fehlgeschlagen."
|
||||
fi
|
||||
return $exit_code
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user