diff --git a/vm/openwrt.sh b/vm/openwrt.sh index dc1c1828..9c511e37 100644 --- a/vm/openwrt.sh +++ b/vm/openwrt.sh @@ -36,7 +36,7 @@ BFR="\\r\\033[K" HOLD="-" CM="${GN}✓${CL}" CROSS="${RD}✗${CL}" -set -Eeuo pipefail +set -Eeo pipefail trap 'error_handler $LINENO "$BASH_COMMAND"' ERR trap cleanup EXIT function error_handler() {