提交 d175c3fe 编写于 作者: P prgrmz01@163.com

fix: /usr/bin/git(git_template): 20: Syntax error: redirection unexpected

上级 14ac4756
......@@ -13,12 +13,9 @@ echo "pwd:`pwd`; /usr/bin/git.original $new_args" >> /tmp/git.log
#git clone https://github.com/frida/libpsl.git
#IFS=' ' read -r -a new_arg_array <<< "-c advice.detachedHead=false clone --depth 1 --branch main https://github.com/frida/glib.git glib"
#echo "${new_arg_array[-1]}"
#glib
#python -c 's="-c advice.detachedHead=false clone --depth 1 --branch main https://github.com/frida/glib.git glib"; s.replace(" "," "); print(s.split(" ")[-1])'
IFS=' ' read -r -a new_arg_array <<< "$new_args"
git_dir_name="${new_arg_array[-1]}"
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 -f ${gitmodules_path} && python /pubx/git-replace/replace_gitmodules_url.py ${gitmodules_path}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册