From 8aceb2b14e224cf3ed28ab6cd326b32897135b68 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 6 Jun 2017 22:37:10 +0800 Subject: improve get.sh to install local --- docs/get.sh | 2 +- scripts/get.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/get.sh b/docs/get.sh index 00e3831f7..6e417b98c 100755 --- a/docs/get.sh +++ b/docs/get.sh @@ -114,7 +114,7 @@ then cd - || my_exit 'Chdir Error' fi else - cp -r "$(git rev-parse --show-toplevel 2>/dev/null || echo thisshouldnotbeafilename)" $tmpdir || my_exit "$(echo -e 'Clone Fail\nLocal repo might be not found')" + tmpdir=`pwd` fi if [ 'x__install_only__' != "x$2" ] then diff --git a/scripts/get.sh b/scripts/get.sh index 00e3831f7..6e417b98c 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -114,7 +114,7 @@ then cd - || my_exit 'Chdir Error' fi else - cp -r "$(git rev-parse --show-toplevel 2>/dev/null || echo thisshouldnotbeafilename)" $tmpdir || my_exit "$(echo -e 'Clone Fail\nLocal repo might be not found')" + tmpdir=`pwd` fi if [ 'x__install_only__' != "x$2" ] then -- cgit v1.3.1