From b78582681e2d3d18a7c64e897f5cc18c82aa64fc Mon Sep 17 00:00:00 2001 From: Yan Yue <1131531947@qq.com> Date: Fri, 11 Oct 2024 17:26:50 +0800 Subject: [PATCH] util: parallel_sim.sh fix suffix (#177) Change-Id: Ifd19824f9e0d308620e95de31db0c542ac85108e --- util/xs_scripts/parallel_sim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/xs_scripts/parallel_sim.sh b/util/xs_scripts/parallel_sim.sh index b03757603f..c2180ccfb6 100644 --- a/util/xs_scripts/parallel_sim.sh +++ b/util/xs_scripts/parallel_sim.sh @@ -88,7 +88,7 @@ function prepare_env() { suffixes=("gz" "zstd") checkpoint="" for suffix in "${suffixes[@]}"; do - checkpoint=$(find -L $cpt_dir -wholename "*${task_path}*${suffixes}" | head -n 1) + checkpoint=$(find -L "$cpt_dir" -wholename "*${task_path}*.$suffix" | head -n 1) if [ -n "$checkpoint" ]; then break fi