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>pull/11166/head
parent
64adbb7b54
commit
5eb481cd5b
|
@ -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 New Issue