소스 검색

Don't print generated registration message if config is invalid. Fixes #240

Tulir Asokan 3 년 전
부모
커밋
05aaf167da
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docker-run.sh

+ 1 - 1
docker-run.sh

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