diff options
author | Dan Callahan <danc@element.io> | 2021-10-27 21:36:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 21:36:18 +0100 |
commit | a1ba7a850aaad51799ce77006ac5e8a425881765 (patch) | |
tree | aa501e65702a3e3fb179c3a0c37dc15543637f72 /docker | |
parent | Annotate `log_function` decorator (#10943) (diff) | |
parent | Merge remote-tracking branch 'origin/develop' into shellcheck (diff) | |
download | synapse-a1ba7a850aaad51799ce77006ac5e8a425881765.tar.xz |
Update scripts to pass Shellcheck lints (#11166)
Diffstat (limited to 'docker')
-rw-r--r-- | docker/build_debian.sh | 4 |
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 |