-q zip and unzip

pull/289/head
Frostebite 2021-08-08 08:09:20 +01:00
parent 4f4ce3236f
commit 8b74c299b5
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ latestLibraryCacheFile=$(ls -t "$libraryCacheFolder" | grep .zip$ | head -1)
if [ ! -z "$latestLibraryCacheFile" ]; then if [ ! -z "$latestLibraryCacheFile" ]; then
echo "Library cache exists from build $latestLibraryCacheFile from $branch" echo "Library cache exists from build $latestLibraryCacheFile from $branch"
mkdir -p "$libraryFolderFull" mkdir -p "$libraryFolderFull"
unzip "$libraryCacheFolder/$latestLibraryCacheFile" -d "$libraryFolderFull" unzip -q "$libraryCacheFolder/$latestLibraryCacheFile" -d "$libraryFolderFull"
fi fi
echo "Checking cache for a cache match based on the combined large files hash ($lfsCacheFolder/$LFS_ASSETS_HASH.zip)" echo "Checking cache for a cache match based on the combined large files hash ($lfsCacheFolder/$LFS_ASSETS_HASH.zip)"
@ -46,7 +46,7 @@ if [ ! -f "$lfsCacheFolder/$latestLFSCacheFile" ]; then
echo "LFS cache exists from build $latestLFSCacheFile from $branch" echo "LFS cache exists from build $latestLFSCacheFile from $branch"
rm -r "$gitLFSDestinationFolder" rm -r "$gitLFSDestinationFolder"
mkdir -p "$gitLFSDestinationFolder" mkdir -p "$gitLFSDestinationFolder"
unzip "$lfsCacheFolder/$latestLFSCacheFile" -d "$gitLFSDestinationFolder" unzip -q "$lfsCacheFolder/$latestLFSCacheFile" -d "$gitLFSDestinationFolder"
echo "git LFS folder, (should not contain $latestLFSCacheFile)" echo "git LFS folder, (should not contain $latestLFSCacheFile)"
ls -lh "$gitLFSDestinationFolder" ls -lh "$gitLFSDestinationFolder"
fi fi
@ -74,7 +74,7 @@ du -sch "$cacheFolderFull"
echo ' ' echo ' '
git lfs pull git lfs pull
echo 'pulled latest LFS files' echo 'pulled latest LFS files'
zip -r "$LFS_ASSETS_HASH.zip" "$gitLFSDestinationFolder" zip -q -r "$LFS_ASSETS_HASH.zip" "$gitLFSDestinationFolder"
cp "$LFS_ASSETS_HASH.zip" "$lfsCacheFolder" cp "$LFS_ASSETS_HASH.zip" "$lfsCacheFolder"
echo "copied $LFS_ASSETS_HASH to $lfsCacheFolder" echo "copied $LFS_ASSETS_HASH to $lfsCacheFolder"
echo ' ' echo ' '