handle cache correctly
parent
7252adf945
commit
b0d7565bff
|
|
@ -1881,10 +1881,8 @@ class RemoteBuilder {
|
||||||
if [ ! -z "$latest" ]; then
|
if [ ! -z "$latest" ]; then
|
||||||
echo "Library cache exists from build $latest from ${branchName}"
|
echo "Library cache exists from build $latest from ${branchName}"
|
||||||
echo 'Creating empty Library folder for cache'
|
echo 'Creating empty Library folder for cache'
|
||||||
mkdir "$libDir"
|
mkdir $libDir
|
||||||
latestFile=$(basename $latest suffix)
|
unzip -q $latest -d $libDir
|
||||||
mv $latest $libDir
|
|
||||||
unzip -q "$libDir/$latestFile"
|
|
||||||
else
|
else
|
||||||
echo 'Cache does not exist'
|
echo 'Cache does not exist'
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -325,10 +325,8 @@ class RemoteBuilder {
|
||||||
if [ ! -z "$latest" ]; then
|
if [ ! -z "$latest" ]; then
|
||||||
echo "Library cache exists from build $latest from ${branchName}"
|
echo "Library cache exists from build $latest from ${branchName}"
|
||||||
echo 'Creating empty Library folder for cache'
|
echo 'Creating empty Library folder for cache'
|
||||||
mkdir "$libDir"
|
mkdir $libDir
|
||||||
latestFile=$(basename $latest suffix)
|
unzip -q $latest -d $libDir
|
||||||
mv $latest $libDir
|
|
||||||
unzip -q "$libDir/$latestFile"
|
|
||||||
else
|
else
|
||||||
echo 'Cache does not exist'
|
echo 'Cache does not exist'
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue