Uses current dir if its a git repo as mentioned in #299
This commit is contained in:
parent
b8acf77d72
commit
e329c84480
@ -12,9 +12,16 @@ if grep -q ' 6' /etc/redhat-release; then
|
||||
fi
|
||||
|
||||
yum install -y bison git golang make man which
|
||||
|
||||
cd $(dirname ${BASH_SOURCE[0]})
|
||||
if git rev-parse; then
|
||||
cd $(git rev-parse --show-toplevel)
|
||||
else
|
||||
cd /tmp
|
||||
[ -d git-lfs ] || git clone https://github.com/github/git-lfs
|
||||
cd git-lfs
|
||||
fi
|
||||
|
||||
./script/bootstrap
|
||||
install -D bin/git-lfs /usr/local/bin
|
||||
git lfs init
|
||||
|
@ -18,9 +18,15 @@ if [[ $go_version < 1.3.1 ]]; then
|
||||
set -u
|
||||
fi
|
||||
|
||||
cd $(dirname ${BASH_SOURCE[0]})
|
||||
if git rev-parse; then
|
||||
cd $(git rev-parse --show-toplevel)
|
||||
else
|
||||
cd /tmp
|
||||
[ -d git-lfs ] || git clone https://github.com/github/git-lfs
|
||||
cd git-lfs
|
||||
fi
|
||||
|
||||
./script/bootstrap
|
||||
install -D bin/git-lfs /usr/local/bin
|
||||
git lfs init
|
||||
|
Loading…
Reference in New Issue
Block a user