diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh index 2dc3ba246db..0be4ab71e63 100644 --- a/common/hooks/do-fetch/00-distfiles.sh +++ b/common/hooks/do-fetch/00-distfiles.sh @@ -28,6 +28,9 @@ hook() { cd $srcdir || msg_error "$pkgver: cannot change dir to $srcdir!\n" + # Disable trap on ERR; the code is smart enough to report errors and abort. + trap - ERR + for f in ${distfiles}; do curfile=$(basename $f) distfile="$srcdir/$curfile"