File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ repo="ton"
1313branch=" master"
1414srcdir=" /usr/src/"
1515bindir=" /usr/bin/"
16+ tmpdir=" /tmp/ton_src/"
1617
1718# Get arguments
1819while getopts a:r:b: flag
5960 opensslPath=${bindir} /openssl_3
6061fi
6162
63+ rm -rf ${tmpdir} /${repo}
64+ mkdir -p ${tmpdir} /${repo}
65+ cd ${tmpdir} /${repo}
66+ echo " https://github.com/${author} /${repo} .git -> ${branch} "
67+ git clone --recursive https://github.com/${author} /${repo} .git . || exit 1
68+
6269# Go to work dir
6370cd ${srcdir} /${repo}
6471ls -A1 | xargs rm -rf
6572
6673# Update code
67- echo " https://github.com/${author} /${repo} .git -> ${branch} "
68- git clone --recursive https://github.com/${author} /${repo} .git .
74+ cp -rfT ${tmpdir} /${repo} .
6975git checkout ${branch}
7076
7177git submodule sync --recursive
You can’t perform that action at this time.
0 commit comments