From 261e080d35c5d4c6f3b91a3e95a62a96a0b861d8 Mon Sep 17 00:00:00 2001 From: shy Date: Thu, 14 Mar 2024 00:52:31 +0800 Subject: [PATCH] add some --- src/main.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.sh b/src/main.sh index cf96632c..f8f04bac 100644 --- a/src/main.sh +++ b/src/main.sh @@ -24,7 +24,9 @@ main() { ;; dev) shift # 开发环境 require miss.sh; prepare_package; prepare_system; [ -f ~/.gitconfig ] || ish_dev_git_prepare - [ -e $ctx_name ] || git config --global "url.$ctx_dev/x/.insteadof" "${ctx_repos%/*}/" && echo && ish_log_debug -g "clone $ctx_repos" && git clone $ctx_repos $ctx_name; cd $ctx_name + if ! [ -e $ctx_name ]; then + git config --global "url.$ctx_dev/x/.insteadof" "${ctx_repos%/*}/" && echo && ish_log_debug -g "clone $ctx_repos" && git clone $ctx_repos $ctx_name + fi; cd $ctx_name source etc/miss.sh && $PWD/bin/ice.bin forever start "$@" ;; cmd) # 命令环境