From a66ef34714e5f0e8f264ebfc6d2b2d60a3c8cbb4 Mon Sep 17 00:00:00 2001 From: Jackie Li Date: Tue, 30 Jan 2024 15:02:09 +0000 Subject: [PATCH] update test --- src/create-cache-files.sh | 1 + src/verify-cache-files.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/create-cache-files.sh b/src/create-cache-files.sh index 0ce4140..7a2295a 100755 --- a/src/create-cache-files.sh +++ b/src/create-cache-files.sh @@ -14,4 +14,5 @@ if [ -z "$path" ]; then fi mkdir -p $path +echo -e "File content:\n$prefix $GITHUB_RUN_ID" echo "$prefix $GITHUB_RUN_ID" > $path/test-file.txt diff --git a/src/verify-cache-files.sh b/src/verify-cache-files.sh index 3ee8a84..78e1517 100755 --- a/src/verify-cache-files.sh +++ b/src/verify-cache-files.sh @@ -29,7 +29,7 @@ fi # Verify file content content="$(cat $file)" -echo "File content:\n$content" +echo -e "File content:\n$content" if [ -z "$(echo $content | grep --fixed-strings "$prefix $GITHUB_RUN_ID")" ]; then echo "Unexpected file content" exit 1