mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
hiby: r1_patcher: stop script execution on any error
Change-Id: Ic683b8ed155a5e9d2779d40a3b7673579056d9b1
This commit is contained in:
parent
ee3e630efa
commit
3bfce366ac
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
################################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue