comparison sources/utility_functions.sh @ 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 c654511d227c
children
comparison
equal deleted inserted replaced
1814:5ff5fea0ad7a 1815:191dfad915ba
17 17
18 # output the sha1sum of a file 18 # output the sha1sum of a file
19 19
20 sha1file() 20 sha1file()
21 { 21 {
22 sha1sum "$@" | awk '{print $1}' 22 sha1sum /dev/null "$@" | tail -n +2 | awk '{print $1}'
23 } 23 }
24 24
25 # dienow() is an exit function that works properly even from a subshell. 25 # dienow() is an exit function that works properly even from a subshell.
26 # (actually_dienow is run in the parent shell via signal handler.) 26 # (actually_dienow is run in the parent shell via signal handler.)
27 27