rootfs/home/andre/.bashrc aktualisiert
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user