summary refs log tree commit diff
path: root/debian/test/provision.sh
diff options
context:
space:
mode:
authorDan Callahan <danc@element.io>2021-10-22 21:58:48 +0100
committerDan Callahan <danc@element.io>2021-10-22 23:08:54 +0100
commit31096132c313e2a72d66e3eb13612e37350800ea (patch)
tree08e99ea8cedd402f2311351e3788495c9009224c /debian/test/provision.sh
parentFix Shellcheck SC2016: Single quotes don't expand (diff)
downloadsynapse-31096132c313e2a72d66e3eb13612e37350800ea.tar.xz
Fix Shellcheck SC2012: Use find instead of ls
Use find instead of ls to better handle non-alphanumeric filenames.

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

Signed-off-by: Dan Callahan <danc@element.io>
Diffstat (limited to 'debian/test/provision.sh')
-rw-r--r--debian/test/provision.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/test/provision.sh b/debian/test/provision.sh
index 931f300e97..8567b146ad 100644
--- a/debian/test/provision.sh
+++ b/debian/test/provision.sh
@@ -10,7 +10,7 @@ set -e
 apt-get update
 apt-get install -y lsb-release
 
-deb=`ls "/debs/matrix-synapse-py3_*+$(lsb_release -cs)*.deb" | sort | tail -n1`
+deb=`find /debs -name "matrix-synapse-py3_*+$(lsb_release -cs)*.deb" | sort | tail -n1`
 
 debconf-set-selections <<EOF
 matrix-synapse matrix-synapse/report-stats boolean false