diff options
| author | TitanSnow <[email protected]> | 2017-04-24 11:46:06 +0800 |
|---|---|---|
| committer | TitanSnow <[email protected]> | 2017-04-24 11:46:06 +0800 |
| commit | c3c37385fc23439c28b97b113be0fce8aef947b8 (patch) | |
| tree | d80d7d1f13a8f2bdbd405a1c59b7f5da7f06088a /scripts | |
| parent | c79f19923138e47269bea7285802d13eaf7f7bf9 (diff) | |
echo branch name
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh index f41c2b118..273ae1f17 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -58,7 +58,11 @@ install_tools() } test_tools || { install_tools && test_tools; } || my_exit 'Dependencies Installation Fail' 1 branch= -if [ x != "x$1" ];then branch="-b $1";fi +if [ x != "x$1" ] +then + branch="-b $1" + echo "Branch: $1" +fi git clone --depth=1 $branch https://github.com/tboox/xmake.git /tmp/$$xmake_getter || my_exit 'Clone Fail' make -C /tmp/$$xmake_getter --no-print-directory build || my_exit 'Build Fail' IFS=':' |
