Silence sha check

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2017-02-20 15:10:46 -08:00
parent cde7b53de3
commit 6023984703
No known key found for this signature in database
GPG key ID: 572E999E385B7BFC

View file

@ -1169,7 +1169,7 @@ FTLinstall() {
# Get sha1 of the binary we just downloaded for verification.
curl -sSL --fail "https://github.com/pi-hole/FTL/releases/download/${latesttag%$'\r'}/${binary}.sha1" -o "/tmp/${binary}.sha1"
# Check if we just downloaded text, or a binary file.
if sha1sum -c /tmp/"${binary}".sha1 /tmp/"${binary}"; then
if sha1sum -c /tmp/"${binary}".sha1 /tmp/"${binary}" &> /dev/null; then
echo -n "transferred... "
install -m 0755 /tmp/pihole-FTL /usr/bin
touch /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port