Rename CACHDIR to CACHEDIR
Looks like it's just a typo. Change-Id: Ia4bf1152870ba1996171f5502f1f074f11ffd446
This commit is contained in:
parent
2f2cb8e969
commit
2013457ca6
|
@ -1,16 +1,16 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
get_get_repo(){
|
get_get_repo(){
|
||||||
CACHDIR=$TOCI_CACHE_DIR/${1/[^\/]*\//}
|
CACHEDIR=$TOCI_CACHE_DIR/${1/[^\/]*\//}
|
||||||
if [ ! -e $CACHDIR ] ; then
|
if [ ! -e $CACHEDIR ] ; then
|
||||||
git clone https://github.com/$1.git $CACHDIR
|
git clone https://github.com/$1.git $CACHEDIR
|
||||||
else
|
else
|
||||||
pushd $CACHDIR
|
pushd $CACHEDIR
|
||||||
git fetch
|
git fetch
|
||||||
git reset --hard origin/master
|
git reset --hard origin/master
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
cp -r $CACHDIR $TOCI_WORKING_DIR/${1/[^\/]*\//}
|
cp -r $CACHEDIR $TOCI_WORKING_DIR/${1/[^\/]*\//}
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_noprompt(){
|
ssh_noprompt(){
|
||||||
|
|
Loading…
Reference in New Issue