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>
This commit is contained in:
Dan Callahan 2021-10-18 17:00:05 +01:00
parent 64adbb7b54
commit 5eb481cd5b
No known key found for this signature in database
GPG Key ID: 5FAD56482D9EB851
1 changed files with 2 additions and 2 deletions

View File

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