Fix Shellcheck SC2154: variable possibly undefined

var is referenced but not assigned.

https://github.com/koalaman/shellcheck/wiki/SC2154

Signed-off-by: Dan Callahan <danc@element.io>
This commit is contained in:
Dan Callahan 2021-10-21 22:58:48 +01:00
parent 898e3be4c9
commit 6c736fa472
No known key found for this signature in database
GPG key ID: 5FAD56482D9EB851

View file

@ -5,7 +5,7 @@
set -ex set -ex
# Get the codename from distro env # Get the codename from distro env
DIST=`cut -d ':' -f2 <<< $distro` DIST=`cut -d ':' -f2 <<< ${distro:?}`
# we get a read-only copy of the source: make a writeable copy # we get a read-only copy of the source: make a writeable copy
cp -aT /synapse/source /synapse/build cp -aT /synapse/source /synapse/build