diff --git a/rootfs/home/andre/.bashrc b/rootfs/home/andre/.bashrc index b9008e0..2942f23 100644 --- a/rootfs/home/andre/.bashrc +++ b/rootfs/home/andre/.bashrc @@ -155,6 +155,11 @@ cy-ssh() { echo "DEBUG: ${CMD[*]}" >&2 "${CMD[@]}" + local exit_code=$? + if [ $exit_code -ne 0 ]; then + echo "SSH-Verbindung fehlgeschlagen (Exit-Code: $exit_code)" + fi + return $exit_code } RDP() {