From 00d79b0dcf901204a3fdcc64c76ad000fbf88fe6 Mon Sep 17 00:00:00 2001 From: "prgrmz01@163.com" Date: Thu, 26 Jan 2023 11:48:40 +0800 Subject: [PATCH] fix --- git_template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_template b/git_template index b46af66..c100d5e 100644 --- a/git_template +++ b/git_template @@ -27,7 +27,7 @@ fi git_dir_name=`python -c "s='$new_args'; s.replace(' ',' '); print(s.split(' ')[-1])" ` git_dir="`pwd`/$git_dir_name" gitmodules_path=${git_dir}/.gitmodules -test -pyf ${gitmodules_path} && python /pubx/git-replace/replace_gitmodules_url.py ${gitmodules_path} +test -f ${gitmodules_path} && python /pubx/git-replace/replace_gitmodules_url.py ${gitmodules_path} echo ok >> /tmp/git.log #这句并不是废话, 是为了使得本脚本的退出值为正常0 -- GitLab