summary refs log tree commit diff
diff options
context:
space:
mode:
authorDan Callahan <danc@element.io>2021-10-21 22:58:48 +0100
committerDan Callahan <danc@element.io>2021-10-22 23:08:54 +0100
commit6c736fa47202bcffb4f056d6e5b2f12424e9f758 (patch)
tree86375306ba44df659d44babcf9eccf753a5eb39c
parentFix Shellcheck SC2064: Use single quotes on traps (diff)
downloadsynapse-6c736fa47202bcffb4f056d6e5b2f12424e9f758.tar.xz
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>
-rw-r--r--docker/build_debian.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/build_debian.sh b/docker/build_debian.sh
index 801ff45471..1d0be42cfc 100644
--- a/docker/build_debian.sh
+++ b/docker/build_debian.sh
@@ -5,7 +5,7 @@
 set -ex
 
 # 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
 cp -aT /synapse/source /synapse/build