From 91cfe593dfb375dfe9821f195ed1a017ed778dfa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 30 Sep 2025 07:30:29 +0000 Subject: [PATCH] Fix ls error when no tar files exist in cache restore Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com> --- restore_pkgs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore_pkgs.sh b/restore_pkgs.sh index 418f9f0..4556265 100755 --- a/restore_pkgs.sh +++ b/restore_pkgs.sh @@ -40,7 +40,7 @@ log "done" log_empty_line # Only search for archived results. Manifest and cache key also live here. -cached_filepaths=$(ls -1 "${cache_dir}"/*.tar | sort) +cached_filepaths=$(ls -1 "${cache_dir}"/*.tar 2>/dev/null | sort) cached_filecount=$(echo ${cached_filepaths} | wc -w) log "Restoring ${cached_filecount} packages from cache..."