pull/235/head
mdugdale 2021-04-03 13:50:49 +01:00
parent d3e60e05df
commit 7d11eca81c
3 changed files with 19 additions and 7 deletions

12
dist/index.js vendored
View File

@ -243,9 +243,14 @@ class AWS {
if [ ! -d "cache" ]; then
mkdir "cache"
fi
ls
cd cache
if [ ! -d "${branchName}" ]; then
mkdir "${branchName}"
fi
cd "${branchName}"
ls
echo ''
@ -254,7 +259,8 @@ class AWS {
echo $latest
if [ -f $latest ]; then
echo "Cache exists"
unzip "$latest" ../${buildUid}/repo/Library/.
cd ../../
unzip "cache/${branchName}/"$latest ../${buildUid}/repo/Library/.
else
echo "Cache does not exist"
fi

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -30,9 +30,14 @@ class AWS {
if [ ! -d "cache" ]; then
mkdir "cache"
fi
ls
cd cache
if [ ! -d "${branchName}" ]; then
mkdir "${branchName}"
fi
cd "${branchName}"
ls
echo ''
@ -41,7 +46,8 @@ class AWS {
echo $latest
if [ -f $latest ]; then
echo "Cache exists"
unzip "$latest" ../${buildUid}/repo/Library/.
cd ../../
unzip "cache/${branchName}/"$latest ../${buildUid}/repo/Library/.
else
echo "Cache does not exist"
fi