✏️ format code (#24)

This commit is contained in:
Kevin Sanchez 2020-08-11 10:51:29 +08:00 committed by GitHub
parent 4847dea439
commit ec271a2fa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,24 +47,24 @@ configure() {
printf "启用日志记录? [Y/n]" printf "启用日志记录? [Y/n]"
read -r logging_confirmation <&1 read -r logging_confirmation <&1
case $logging_confirmation in case $logging_confirmation in
[yY][eE][sS]|[yY]) [yY][eE][sS]|[yY])
printf "请输入您的日志记录群组/频道的 ChatID (如果要发送给 原 PagerMaid 作者 请按Enter" printf "请输入您的日志记录群组/频道的 ChatID (如果要发送给 原 PagerMaid 作者 请按Enter"
read -r log_chatid <&1 read -r log_chatid <&1
if [ -z "$log_chatid" ] if [ -z "$log_chatid" ]
then then
echo "LOG 将发送到 原 PagerMaid 作者." echo "LOG 将发送到 原 PagerMaid 作者."
else else
sed -i "s/503691334/$log_chatid/" $config_file sed -i "s/503691334/$log_chatid/" $config_file
fi fi
sed -i "s/log: False/log: True/" $config_file sed -i "s/log: False/log: True/" $config_file
;; ;;
[nN][oO]|[nN]) [nN][oO]|[nN])
echo "安装过程继续 . . ." echo "安装过程继续 . . ."
;; ;;
*) *)
echo "输入错误 . . ." echo "输入错误 . . ."
exit 1 exit 1
;; ;;
esac esac
} }
@ -78,9 +78,8 @@ login() {
exit exit
} }
start_installation() { start_installation() {
welcome welcome
configure configure
login login
} }