From 2013457ca6edac60500178dab36fd36d9aa4566a Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Mon, 22 Jul 2013 15:01:35 +0100 Subject: [PATCH] Rename CACHDIR to CACHEDIR Looks like it's just a typo. Change-Id: Ia4bf1152870ba1996171f5502f1f074f11ffd446 --- toci_functions.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/toci_functions.sh b/toci_functions.sh index 54c6d5fb1..e4897a01d 100644 --- a/toci_functions.sh +++ b/toci_functions.sh @@ -1,16 +1,16 @@ #!/usr/bin/env bash get_get_repo(){ - CACHDIR=$TOCI_CACHE_DIR/${1/[^\/]*\//} - if [ ! -e $CACHDIR ] ; then - git clone https://github.com/$1.git $CACHDIR + CACHEDIR=$TOCI_CACHE_DIR/${1/[^\/]*\//} + if [ ! -e $CACHEDIR ] ; then + git clone https://github.com/$1.git $CACHEDIR else - pushd $CACHDIR + pushd $CACHEDIR git fetch git reset --hard origin/master popd fi - cp -r $CACHDIR $TOCI_WORKING_DIR/${1/[^\/]*\//} + cp -r $CACHEDIR $TOCI_WORKING_DIR/${1/[^\/]*\//} } ssh_noprompt(){