From 167a598265b9f81f5afc71380c4f6b871caeb76b Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 4 Nov 2014 08:10:21 -0500 Subject: updpkgsums: avoid exec'ing awk, so the trap actually works Signed-off-by: Allan McRae --- contrib/updpkgsums.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2