handle cache correctly

pull/263/head
Frostebite 2021-05-22 22:35:43 +01:00
parent 7252adf945
commit b0d7565bff
3 changed files with 5 additions and 9 deletions

6
dist/index.js vendored
View File

@ -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

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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