mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 10:45:29 +00:00
Only search for archives in cache directory.
This commit is contained in:
parent
2516d0fc19
commit
b67439fdd6
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue