mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-22 17:17:03 +02:00
hooks/do-extract: 00-distfiles.sh: disable trap on ERR.
This commit is contained in:
parent
d15b1f6746
commit
d547e90018
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ hook() {
|
|||
mkdir -p ${wrksrc} || msg_error "$pkgver: failed to create wrksrc.\n"
|
||||
fi
|
||||
|
||||
# Disable trap on ERR; the code is smart enough to report errors and abort.
|
||||
trap - ERR
|
||||
|
||||
TAR_CMD="$(command -v bsdtar)"
|
||||
[ -z "$TAR_CMD" ] && TAR_CMD="$(command -v tar)"
|
||||
[ -z "$TAR_CMD" ] && msg_error "xbps-src: no suitable tar cmd (bsdtar, tar)\n"
|
||||
|
|
Loading…
Add table
Reference in a new issue