From 665ed19cff55830ea345a5f7b4857c8bafa63294 Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 11 May 2021 10:09:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0extra=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/share.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell/share.sh b/shell/share.sh index 3f214a26..e9c38c87 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -162,6 +162,12 @@ fix_config() { echo fi + if [ ! -f $file_extra_shell ]; then + echo -e "检测到config配置目录下不存在extra.sh,创建一个空文件用于初始化...\n" + touch $file_extra_shell + echo + fi + if [ ! -s $file_auth_user ]; then echo -e "复制一份 $file_auth_sample 为 $file_auth_user\n" cp -fv $file_auth_sample $file_auth_user