Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 3109613

Browse files
committed
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 <[email protected]>
1 parent 9d0f9d5 commit 3109613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debian/test/provision.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -e
1010
apt-get update
1111
apt-get install -y lsb-release
1212

13-
deb=`ls "/debs/matrix-synapse-py3_*+$(lsb_release -cs)*.deb" | sort | tail -n1`
13+
deb=`find /debs -name "matrix-synapse-py3_*+$(lsb_release -cs)*.deb" | sort | tail -n1`
1414

1515
debconf-set-selections <<EOF
1616
matrix-synapse matrix-synapse/report-stats boolean false

0 commit comments

Comments
 (0)