From c3c37385fc23439c28b97b113be0fce8aef947b8 Mon Sep 17 00:00:00 2001 From: TitanSnow Date: Mon, 24 Apr 2017 11:46:06 +0800 Subject: echo branch name --- scripts/get.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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=':' -- cgit v1.3.1