forked from MirrorHub/synapse
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:
parent
64adbb7b54
commit
5eb481cd5b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue