hiby: r1_patcher: stop script execution on any error

Change-Id: Ic683b8ed155a5e9d2779d40a3b7673579056d9b1
This commit is contained in:
Roman Artiukhin 2026-01-29 12:13:26 +02:00
parent ee3e630efa
commit 3bfce366ac

View file

@ -8,6 +8,12 @@ if [[ $# -ne 2 ]]; then
exit 1
fi
# Fail fast on any error, undefined variable, or failed pipeline
set -euo pipefail
# Report errors with line number and the failing command
trap 'echo "ERROR at line ${LINENO}: ${BASH_COMMAND}" >&2' ERR
################################################################################
### init
################################################################################