cleanup and corrections

pull/273/head
Frostebite 2021-08-01 19:13:26 +01:00
parent 5df686eecc
commit af757777a5
1 changed files with 5 additions and 1 deletions

View File

@ -40,11 +40,13 @@ if [ ! -z "$latestLibraryCacheFile" ]; then
echo 'Creating empty Library folder for cache' echo 'Creating empty Library folder for cache'
mkdir -p "$libraryFolderFull" mkdir -p "$libraryFolderFull"
unzip -q "$libraryCacheFolder/$latestLibraryCacheFile" -d "$libraryFolderFull" unzip -q "$libraryCacheFolder/$latestLibraryCacheFile" -d "$libraryFolderFull"
echo 'Unzipped library'
fi fi
latestLFSCacheFile=$(ls -t "$lfsCacheFolder" | grep .zip$ | head -1) latestLFSCacheFile=$(ls -t "$lfsCacheFolder" | grep .zip$ | head -1)
if [ ! -v "$LFS_ASSETS_HASH" ] && [ -f "$lfsCacheFolder/$LFS_ASSETS_HASH.zip" ]; then if [ ! -v "$LFS_ASSETS_HASH" ] && [ -f "$lfsCacheFolder/$LFS_ASSETS_HASH.zip" ]; then
echo 'Exact LFS hash match'
latestLFSCacheFile="$LFS_ASSETS_HASH.zip" latestLFSCacheFile="$LFS_ASSETS_HASH.zip"
fi fi
@ -59,11 +61,13 @@ echo ' '
echo 'Size of LFS cache folder for this branch' echo 'Size of LFS cache folder for this branch'
du -sch "$gitLFSDestinationFolder" du -sch "$gitLFSDestinationFolder"
echo 'Size of Library cache folder for this branch' echo 'Size of Library cache folder for this branch'
du -sch "$latestLibraryCacheFile" du -sch "$latestLibraryCacheFolder"
echo ' ' echo ' '
echo 'Size of cache folder for this branch' echo 'Size of cache folder for this branch'
du -sch "$cacheFolderWithBranch" du -sch "$cacheFolderWithBranch"
echo ' ' echo ' '
echo 'Size of LFS cache folder' echo 'Size of LFS cache folder'
du -sch "$cacheFolderFull" du -sch "$cacheFolderFull"
echo ' ' echo ' '