mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-19 04:23:57 +01: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
1 changed files with 2 additions and 2 deletions
|
@ -12,8 +12,8 @@ if [ -f $PID_FILE ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for port in 8080 8081 8082; do
|
for port in 8080 8081 8082; do
|
||||||
rm -rf $DIR/$port
|
rm -rf ${DIR:?}/$port
|
||||||
rm -rf $DIR/media_store.$port
|
rm -rf $DIR/media_store.$port
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -rf $DIR/etc
|
rm -rf ${DIR:?}/etc
|
||||||
|
|
Loading…
Reference in a new issue