summary refs log tree commit diff
path: root/demo/clean.sh
diff options
context:
space:
mode:
authorDan Callahan <danc@element.io>2021-10-18 17:00:05 +0100
committerDan Callahan <danc@element.io>2021-10-22 23:08:54 +0100
commit5eb481cd5b825220f6b8283a553cce936bd6d8c4 (patch)
tree996628311fb04446e293a637efe47c970ae86948 /demo/clean.sh
parentFix Shellcheck SC2046: Quote to prevent word split (diff)
downloadsynapse-5eb481cd5b825220f6b8283a553cce936bd6d8c4.tar.xz
Fix Shellcheck SC2115: Ensure never expands to /*
Use "${var:?}" to ensure this never expands to /* .

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

Signed-off-by: Dan Callahan <danc@element.io>
Diffstat (limited to 'demo/clean.sh')
-rwxr-xr-xdemo/clean.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/clean.sh b/demo/clean.sh

index 6b809f6e83..99482e87d3 100755 --- a/demo/clean.sh +++ b/demo/clean.sh
@@ -12,8 +12,8 @@ if [ -f $PID_FILE ]; then fi for port in 8080 8081 8082; do - rm -rf $DIR/$port + rm -rf ${DIR:?}/$port rm -rf $DIR/media_store.$port done -rm -rf $DIR/etc +rm -rf ${DIR:?}/etc