diff --git a/gem5-bench-cache b/gem5-bench-cache index 1efc715..eb47a4f 100755 --- a/gem5-bench-cache +++ b/gem5-bench-cache @@ -66,7 +66,7 @@ bench-all() ( if "$generate_checkpoints"; then # Create the checkpoints after the kernel boot. - rm -rf "${m5out_dir}/cpt.*"; + rm -rf "${m5out_dir}"/cpt.*; printf 'm5 exit' >"${readfile_file}" cpt_cmd="-E 'm5 checkpoint;m5 readfile > a.sh;sh a.sh'" # 1