diff --git a/rootfs/home/andre/.bashrc b/rootfs/home/andre/.bashrc index 0abe7eb..da6c534 100644 --- a/rootfs/home/andre/.bashrc +++ b/rootfs/home/andre/.bashrc @@ -71,7 +71,6 @@ shopt -s expand_aliases shopt -s extglob cy-ssh() { - trap 'exit 0' EXIT set -euo pipefail if [ $# -lt 1 ]; then @@ -168,8 +167,9 @@ cy-ssh() { # Optional Debug ############################################################################### echo "DEBUG: ${CMD[*]}" >&2 - + set +e "${CMD[@]}" + local exit_code=$? if [ $exit_code -ne 0 ]; then echo "