rootfs/home/andre/.bashrc aktualisiert
This commit is contained in:
@@ -71,7 +71,6 @@ shopt -s expand_aliases
|
|||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
cy-ssh() {
|
cy-ssh() {
|
||||||
trap 'exit 0' EXIT
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
@@ -168,8 +167,9 @@ cy-ssh() {
|
|||||||
# Optional Debug
|
# Optional Debug
|
||||||
###############################################################################
|
###############################################################################
|
||||||
echo "DEBUG: ${CMD[*]}" >&2
|
echo "DEBUG: ${CMD[*]}" >&2
|
||||||
|
set +e
|
||||||
"${CMD[@]}"
|
"${CMD[@]}"
|
||||||
|
|
||||||
local exit_code=$?
|
local exit_code=$?
|
||||||
if [ $exit_code -ne 0 ]; then
|
if [ $exit_code -ne 0 ]; then
|
||||||
echo "
|
echo "
|
||||||
|
|||||||
Reference in New Issue
Block a user