From df925f71877e785726cfa61ccf20d7dd59c7232c Mon Sep 17 00:00:00 2001 From: Michael Melesse Date: Tue, 25 Oct 2022 20:48:36 +0000 Subject: [PATCH] add cache print script --- scripts/amd/cache_print.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/amd/cache_print.sh b/scripts/amd/cache_print.sh index b9614df44..d70d5e120 100755 --- a/scripts/amd/cache_print.sh +++ b/scripts/amd/cache_print.sh @@ -4,6 +4,10 @@ CACHED_FILES=$(find /root/.triton/cache/ -type f -name "*.*") for file in ${CACHED_FILES[@]}; do echo "$file" - sed -i -e '$a\' $file - cat $file + if [[ $file == *.so ]]; then + echo "Skipping printing .so file" + else + sed -i -e '$a\' $file + cat $file + fi done