cleanup
parent
d3e60e05df
commit
7d11eca81c
|
|
@ -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
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue