removed --skip-tilde from which, it keeps which from finding executables in /usr/bin (maybe because HOME=/ in initscripts)

pull/1/head
tastytea 2015-06-11 17:52:12 +02:00
parent 86b327dac4
commit d5a7713bff
1 changed files with 6 additions and 6 deletions

View File

@ -44,13 +44,13 @@ then
fi fi
#Try different hashers, use the most secure #Try different hashers, use the most secure
HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha512sum 2> /dev/null) HASHER=$(/usr/bin/which --skip-dot sha512sum 2> /dev/null)
test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha384sum 2> /dev/null) test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot sha384sum 2> /dev/null)
test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha256sum 2> /dev/null) test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot sha256sum 2> /dev/null)
test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha224sum 2> /dev/null) test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot sha224sum 2> /dev/null)
#It gets insecure below here, but better than nothing? #It gets insecure below here, but better than nothing?
test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde sha1sum 2> /dev/null) test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot sha1sum 2> /dev/null)
test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot --skip-tilde md5sum 2> /dev/null) test -z ${HASHER} && HASHER=$(/usr/bin/which --skip-dot md5sum 2> /dev/null)
#If we found no hasher: exit #If we found no hasher: exit
if [ -z ${HASHER} ] if [ -z ${HASHER} ]