changeset 1815:191dfad915ba draft

Fix from Geoff Salmon for hang (sha1sum reading stdin) when new gather_patches function returns nothing for a given package.
author Rob Landley <rob@landley.net>
date Wed, 18 Nov 2015 09:18:44 -0600
parents 5ff5fea0ad7a
children fb05f99ffcce
files sources/utility_functions.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/utility_functions.sh	Thu Nov 12 21:08:02 2015 -0500
+++ b/sources/utility_functions.sh	Wed Nov 18 09:18:44 2015 -0600
@@ -19,7 +19,7 @@
 
 sha1file()
 {
-  sha1sum "$@" | awk '{print $1}'
+  sha1sum /dev/null "$@" | tail -n +2 | awk '{print $1}'
 }
 
 # dienow() is an exit function that works properly even from a subshell.