From 937f37eff0180225677a1d331597eebd35cd8033 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 9 Apr 2022 20:46:25 +0300 Subject: [PATCH] Don't print generated registration message if config is invalid --- docker-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-run.sh b/docker-run.sh index 787d38c5..0df1e5a6 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -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."