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 if [ ! -d "cache" ]; then
mkdir "cache" mkdir "cache"
fi fi
ls
cd cache cd cache
if [ ! -d "${branchName}" ]; then
mkdir "${branchName}"
fi
cd "${branchName}"
ls ls
echo '' echo ''
@ -254,7 +259,8 @@ class AWS {
echo $latest echo $latest
if [ -f $latest ]; then if [ -f $latest ]; then
echo "Cache exists" echo "Cache exists"
unzip "$latest" ../${buildUid}/repo/Library/. cd ../../
unzip "cache/${branchName}/"$latest ../${buildUid}/repo/Library/.
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

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