Fix bad if statement

This commit is contained in:
DeathByDenim 2022-06-04 17:22:41 -04:00
parent 2321c99593
commit 52711370d3
Signed by: DeathByDenim
GPG Key ID: 4A475283D925365B
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ for file in /var/www/html/*\.html; do
sed -i $file -e "/SERVERSTATE/r $(dirname "$0")/../website/_state/online.html"
sed -i $file -e "/SERVERSTATE/d"
done
if [ $NOSSL -eq 1 ]; then
if [ x"$NOSSL" = "x" ] || [ $NOSSL -eq 1 ]; then
for file in /var/www/html/js/*\.js; do
sed -i $file -e s/"wss:"/"ws:"/g
sed -i $file -e s/"https:"/"http:"/g