Przeglądaj źródła

Don't print generated registration message if config is invalid

Tulir Asokan 3 lat temu
rodzic
commit
5090ae1812
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      docker-run.sh

+ 1 - 1
docker-run.sh

@@ -24,7 +24,7 @@ if [ ! -f /data/config.yaml ]; then
 fi
 
 if [ ! -f /data/registration.yaml ]; then
-	python3 -m mautrix_instagram -g -c /data/config.yaml -r /data/registration.yaml
+	python3 -m mautrix_instagram -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."