summary refs log tree commit diff
path: root/docker/build_debian.sh
diff options
context:
space:
mode:
authorDan Callahan <danc@element.io>2021-10-27 21:36:18 +0100
committerGitHub <noreply@github.com>2021-10-27 21:36:18 +0100
commita1ba7a850aaad51799ce77006ac5e8a425881765 (patch)
treeaa501e65702a3e3fb179c3a0c37dc15543637f72 /docker/build_debian.sh
parentAnnotate `log_function` decorator (#10943) (diff)
parentMerge remote-tracking branch 'origin/develop' into shellcheck (diff)
downloadsynapse-a1ba7a850aaad51799ce77006ac5e8a425881765.tar.xz
Update scripts to pass Shellcheck lints (#11166)
Diffstat (limited to 'docker/build_debian.sh')
-rw-r--r--docker/build_debian.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/build_debian.sh b/docker/build_debian.sh
index 801ff45471..9eae38af91 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
@@ -17,7 +17,7 @@ cd /synapse/build
 # Section to determine which "component" it should go into (see
 # https://manpages.debian.org/stretch/reprepro/reprepro.1.en.html#GUESSING)
 
-DEB_VERSION=`dpkg-parsechangelog -SVersion`
+DEB_VERSION=$(dpkg-parsechangelog -SVersion)
 case $DEB_VERSION in
     *~rc*|*~a*|*~b*|*~c*)
         sed -ie '/^Section:/c\Section: prerelease' debian/control