summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-11-04 08:10:21 -0500
committerAllan McRae <allan@archlinux.org>2014-11-05 10:59:30 +1000
commit167a598265b9f81f5afc71380c4f6b871caeb76b (patch)
treea97c276360bce10d9da1104913ec9f7d83422b76
parentbd744d067da1ac455e8a9cdfb622c655f14e485d (diff)
downloadpacman-167a598265b9f81f5afc71380c4f6b871caeb76b.tar.xz
updpkgsums: avoid exec'ing awk, so the trap actually works
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--contrib/updpkgsums.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/updpkgsums.sh.in b/contrib/updpkgsums.sh.in
index 4a9026eb..e0524bd5 100644
--- a/contrib/updpkgsums.sh.in
+++ b/contrib/updpkgsums.sh.in
@@ -82,7 +82,7 @@ fi
export BUILDDIR=$(mktemp -d --tmpdir updpkgsums.XXXXXX)
trap "rm -rf '$BUILDDIR'" EXIT
newsums=$(makepkg -g -p "$buildfile") && rm -f "$buildfile" &&
- exec awk -v newsums="$newsums" '
+ awk -v newsums="$newsums" '
/^[[:blank:]]*(md|sha)[[:digit:]]+sums(_[^=]+)?=/,/\)[[:blank:]]*(#.*)?$/ {
if (!w) {
print newsums