Explorar o código

Don't print generated registration message if config is invalid

Tulir Asokan %!s(int64=3) %!d(string=hai) anos
pai
achega
f085b4d11c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docker-run.sh

+ 1 - 1
docker-run.sh

@@ -24,7 +24,7 @@ if [[ ! -f /data/config.yaml ]]; then
 fi
 fi
 
 
 if [[ ! -f /data/registration.yaml ]]; then
 if [[ ! -f /data/registration.yaml ]]; then
-	/usr/bin/mautrix-whatsapp -g -c /data/config.yaml -r /data/registration.yaml
+	/usr/bin/mautrix-whatsapp -g -c /data/config.yaml -r /data/registration.yaml || exit $?
 	echo "Didn't find a registration file."
 	echo "Didn't find a registration file."
 	echo "Generated one for you."
 	echo "Generated one for you."
 	echo "See https://docs.mau.fi/bridges/general/registering-appservices.html on how to use it."
 	echo "See https://docs.mau.fi/bridges/general/registering-appservices.html on how to use it."