setup-apt-repo: Fix use of shasum alias for sha1sum.

This is apparently installed by the perl package; I hadn't even known
it existed.  We of course want to use the sha1sum command from
coreutils.

Fixes #8836.
This commit is contained in:
Tim Abbott 2018-03-27 09:46:33 -07:00
parent 4cf42ce478
commit 3b29d00c69
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ set -x
SOURCES_FILE=/etc/apt/sources.list.d/zulip.list
STAMP_FILE=/etc/apt/sources.list.d/zulip.list.apt-update-in-progress
zulip_source_hash=`shasum $SOURCES_FILE`
zulip_source_hash=`sha1sum $SOURCES_FILE`
apt-get install -y lsb-release
@ -32,7 +32,7 @@ else
exit 1
fi
if [ "$zulip_source_hash" = "`shasum $SOURCES_FILE`" ] && ! [ -e "$STAMP_FILE" ]; then
if [ "$zulip_source_hash" = "`sha1sum $SOURCES_FILE`" ] && ! [ -e "$STAMP_FILE" ]; then
echo "zulip.list file did not change; skipping apt-get update"
else
# We create this stamp file to ensure `apt-get update` will be run