cleanup and corrections
parent
62721a4ead
commit
5df686eecc
|
|
@ -42,17 +42,17 @@ if [ ! -z "$latestLibraryCacheFile" ]; then
|
||||||
unzip -q "$libraryCacheFolder/$latestLibraryCacheFile" -d "$libraryFolderFull"
|
unzip -q "$libraryCacheFolder/$latestLibraryCacheFile" -d "$libraryFolderFull"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restore LFS cache
|
latestLFSCacheFile=$(ls -t "$lfsCacheFolder" | grep .zip$ | head -1)
|
||||||
if [ ! -v "$LFS_ASSETS_HASH" ] && [ -f "$LFS_ASSETS_HASH.zip" ]
|
|
||||||
then latestLFSCacheFile="$LFS_ASSETS_HASH.zip"
|
if [ ! -v "$LFS_ASSETS_HASH" ] && [ -f "$lfsCacheFolder/$LFS_ASSETS_HASH.zip" ]; then
|
||||||
else latestLFSCacheFile=$(ls -t "$lfsCacheFolder" | grep .zip$ | head -1)
|
latestLFSCacheFile="$LFS_ASSETS_HASH.zip"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$latestLFSCacheFile" ]; then
|
if [ ! -z "$lfsCacheFolder/$latestLFSCacheFile" ]; then
|
||||||
echo "LFS cache exists from build $latestLFSCacheFile from $branchName"
|
echo "LFS cache exists from build $latestLFSCacheFile from $branchName"
|
||||||
rm -r "$gitLFSDestinationFolder"
|
rm -r "$gitLFSDestinationFolder"
|
||||||
mkdir -p "$gitLFSDestinationFolder"
|
mkdir -p "$gitLFSDestinationFolder"
|
||||||
unzip -q "$gitLFSDestinationFolder/$latestLFSCacheFile" -d "$gitLFSDestinationFolder"
|
unzip -q "$lfsCacheFolder/$latestLFSCacheFile" -d "$gitLFSDestinationFolder"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ' '
|
echo ' '
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue