mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-27 09:58:41 +00:00
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
|
@ -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