Only search for archives in cache directory.

This commit is contained in:
awalsh128 2021-10-21 21:45:37 -07:00
parent 2516d0fc19
commit b67439fdd6

View file

@ -13,7 +13,8 @@ cache_restore_root=$2
# List of the packages to use.
packages="${@:3}"
cache_filenames=$(ls -1 $cache_dir | sort)
# Only search for archived results. Manifest and cache key also live here.
cache_filenames=$(ls -1 $cache_dir | grep .tar.gz | sort)
cache_filename_count=$(echo $cache_filenames | wc -w)
echo "Found $cache_filename_count packages in cache."