mirror of https://github.com/zulip/zulip.git
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:
parent
4cf42ce478
commit
3b29d00c69
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue