From 8b54d1b7686fbd11b906c75639be04941dd7267a Mon Sep 17 00:00:00 2001 From: Frostebite Date: Sun, 1 Aug 2021 21:53:51 +0100 Subject: [PATCH] debug logging --- dist/remote-builder/handleCaching.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/remote-builder/handleCaching.sh b/dist/remote-builder/handleCaching.sh index ca121469..01fc792b 100755 --- a/dist/remote-builder/handleCaching.sh +++ b/dist/remote-builder/handleCaching.sh @@ -45,11 +45,14 @@ fi 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" latestLFSCacheFile="$LFS_ASSETS_HASH.zip" else - echo "d1" latestLFSCacheFile=$(ls -t "$lfsCacheFolder" | grep .zip$ | head -1) echo "Match not found: using latest large file cache $latestLFSCacheFile" fi