We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fe00bc commit 97719f4Copy full SHA for 97719f4
1 file changed
scripts/base/install_bin.sh
@@ -39,7 +39,9 @@ function downloader() {
39
user=$2
40
password=$3
41
# ${url: -11} 中间要有空格,才能是截取后几位
42
- git clone -b ${url: -11} ${url:0:8}${user}:${password}@${url:8:-12}
+ # 2024/8/2 适配低版本的shell写法
43
+ length=${#url}
44
+ git clone -b ${url: -11} ${url:0:8}${user}:${password}@${url:8:length-20}
45
cmd_ret=$?
46
if [[ ${cmd_ret} == 0 ]] ; then
47
# 清理lib中无关文件
0 commit comments