diff options
author | Dan Callahan <danc@element.io> | 2021-10-18 17:00:05 +0100 |
---|---|---|
committer | Dan Callahan <danc@element.io> | 2021-10-22 23:08:54 +0100 |
commit | 5eb481cd5b825220f6b8283a553cce936bd6d8c4 (patch) | |
tree | 996628311fb04446e293a637efe47c970ae86948 /demo | |
parent | Fix Shellcheck SC2046: Quote to prevent word split (diff) | |
download | synapse-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 '')
-rwxr-xr-x | demo/clean.sh | 4 |
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 |