Merge "98-source-repositories tries to return from script"

This commit is contained in:
Jenkins 2014-03-13 16:17:51 +00:00 committed by Gerrit Code Review
commit bae43c91c6

@ -53,7 +53,7 @@ function get_repos_for_element(){
if [ ! -e "$CACHE_PATH" ] ; then if [ ! -e "$CACHE_PATH" ] ; then
mv -n $OLD_CACHE_PATH $CACHE_PATH mv -n $OLD_CACHE_PATH $CACHE_PATH
else else
echo "Not replacing new cache location with old cache" && return 1 echo "Not replacing new cache location with old cache"
fi fi
fi fi
@ -169,7 +169,7 @@ if [ -e "$OLD_CACHE_BASE" ] ; then
if [ ! -e "$CACHE_BASE" ] ; then if [ ! -e "$CACHE_BASE" ] ; then
mv -n $OLD_CACHE_BASE $CACHE_BASE mv -n $OLD_CACHE_BASE $CACHE_BASE
else else
echo "Not replacing new cache location with old cache" && return 1 echo "Not replacing new cache location with old cache"
fi fi
fi fi
mkdir -p $CACHE_BASE mkdir -p $CACHE_BASE