Don't print generated registration message if config is invalid

This commit is contained in:
Tulir Asokan
2022-04-09 20:46:25 +03:00
parent 4f9f74204a
commit 937f37eff0
+1 -1
View File
@@ -24,7 +24,7 @@ if [ ! -f /data/config.yaml ]; then
fi
if [ ! -f /data/registration.yaml ]; then
python3 -m mautrix_telegram -g -c /data/config.yaml -r /data/registration.yaml
python3 -m mautrix_telegram -g -c /data/config.yaml -r /data/registration.yaml || exit $?
echo "Didn't find a registration file."
echo "Generated one for you."
echo "See https://docs.mau.fi/bridges/general/registering-appservices.html on how to use it."