Przeglądaj źródła

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>
tags/v1.47.0rc1
Dan Callahan 2 lat temu
rodzic
commit
31096132c3
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 5FAD56482D9EB851
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      debian/test/provision.sh

+ 1
- 1
debian/test/provision.sh Wyświetl plik

@@ -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


Ładowanie…
Anuluj
Zapisz