[pacman-dev] [PATCH 2/4] updpkgsums: avoid exec'ing awk, so the trap actually works

Dave Reisner dreisner at archlinux.org
Tue Nov 4 13:10:21 UTC 2014


---
 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 4a9026e..e0524bd 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
-- 
2.1.3


More information about the pacman-dev mailing list