cleanup and corrections

pull/273/head
Frostebite 2021-08-01 16:39:48 +01:00
parent a72eb3d7e0
commit d6f8ad96f6
1 changed files with 3 additions and 4 deletions

View File

@ -43,10 +43,9 @@ if [ ! -z "$latestLibraryCacheFile" ]; then
fi
# Restore LFS cache
if [[ ! -v "$LFS_ASSETS_HASH" ]]; then
latestLFSCacheFile=LFS_ASSETS_HASH
else
latestLFSCacheFile=$(ls -t "$cacheFolderWithBranch/lfs" | egrep -i -e '\\.zip$' | head -1)
if [ ! -v "$LFS_ASSETS_HASH" ] && [ -f "$LFS_ASSETS_HASH" ]
then latestLFSCacheFile=LFS_ASSETS_HASH
else latestLFSCacheFile=$(ls -t "$cacheFolderWithBranch/lfs" | egrep -i -e '\\.zip$' | head -1)
fi
if [ ! -z "$latestLFSCacheFile" ]; then