diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-11-04 14:10:21 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-11-05 01:59:30 +0100 |
commit | 167a598265b9f81f5afc71380c4f6b871caeb76b (patch) | |
tree | a97c276360bce10d9da1104913ec9f7d83422b76 /contrib | |
parent | bd744d067da1ac455e8a9cdfb622c655f14e485d (diff) | |
download | pacman-167a598265b9f81f5afc71380c4f6b871caeb76b.tar.gz pacman-167a598265b9f81f5afc71380c4f6b871caeb76b.tar.xz |
updpkgsums: avoid exec'ing awk, so the trap actually works
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/updpkgsums.sh.in | 2 |
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 |