From b67439fdd60a4fae20f32dcc7ddab146669c254c Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Thu, 21 Oct 2021 21:45:37 -0700 Subject: [PATCH] Only search for archives in cache directory. --- restore_pkgs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restore_pkgs.sh b/restore_pkgs.sh index 338a1b1..c78b232 100755 --- a/restore_pkgs.sh +++ b/restore_pkgs.sh @@ -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."