diff options
author | Dan Callahan <danc@element.io> | 2021-10-22 22:46:06 +0100 |
---|---|---|
committer | Dan Callahan <danc@element.io> | 2021-10-22 23:08:54 +0100 |
commit | 13f084eb58c379b2fc073680818d5931e94626f4 (patch) | |
tree | fb5d41ac9612ff43394d7d1d722d30e45aa4df1a /demo/clean.sh | |
parent | Fix Shellcheck SC2012: Use find instead of ls (diff) | |
download | synapse-13f084eb58c379b2fc073680818d5931e94626f4.tar.xz |
Fix Shellcheck SC2086: Quote to prevent splitting
Double quote to prevent globbing and word splitting. https://github.com/koalaman/shellcheck/wiki/SC2086 Signed-off-by: Dan Callahan <danc@element.io>
Diffstat (limited to 'demo/clean.sh')
-rwxr-xr-x | demo/clean.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demo/clean.sh b/demo/clean.sh index 99482e87d3..e9b440d90d 100755 --- a/demo/clean.sh +++ b/demo/clean.sh @@ -6,14 +6,14 @@ DIR="$( cd "$( dirname "$0" )" && pwd )" PID_FILE="$DIR/servers.pid" -if [ -f $PID_FILE ]; then +if [ -f "$PID_FILE" ]; then echo "servers.pid exists!" exit 1 fi for port in 8080 8081 8082; do - rm -rf ${DIR:?}/$port - rm -rf $DIR/media_store.$port + rm -rf "${DIR:?}/$port" + rm -rf "$DIR/media_store.$port" done -rm -rf ${DIR:?}/etc +rm -rf "${DIR:?}/etc" |