debug logging

pull/289/head
Frostebite 2021-08-01 21:53:51 +01:00
parent b82794df47
commit 8b54d1b768
1 changed files with 5 additions and 2 deletions

View File

@ -45,11 +45,14 @@ 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)"
if [ ! -v "$LFS_ASSETS_HASH" ] && [ -f "$lfsCacheFolder/$LFS_ASSETS_HASH.zip" ]; then if [ ! -v "$LFS_ASSETS_HASH" ]; then
LFS_ASSETS_HASH="noHashFound"
fi
if [ -f "$lfsCacheFolder/$LFS_ASSETS_HASH.zip" ]; then
echo "Match found: using large file hash match $LFS_ASSETS_HASH.zip" echo "Match found: using large file hash match $LFS_ASSETS_HASH.zip"
latestLFSCacheFile="$LFS_ASSETS_HASH.zip" latestLFSCacheFile="$LFS_ASSETS_HASH.zip"
else else
echo "d1"
latestLFSCacheFile=$(ls -t "$lfsCacheFolder" | grep .zip$ | head -1) latestLFSCacheFile=$(ls -t "$lfsCacheFolder" | grep .zip$ | head -1)
echo "Match not found: using latest large file cache $latestLFSCacheFile" echo "Match not found: using latest large file cache $latestLFSCacheFile"
fi fi