From 9b268480a7e719c0a98bede1fdb1bb3a370ac9c4 Mon Sep 17 00:00:00 2001 From: rindeal Date: Thu, 23 May 2024 18:26:14 +0000 Subject: [PATCH] Update test-2.yml --- .github/workflows/test-2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-2.yml b/.github/workflows/test-2.yml index 1b3c09b..1a3c9b9 100644 --- a/.github/workflows/test-2.yml +++ b/.github/workflows/test-2.yml @@ -23,7 +23,7 @@ jobs: value="${!var}" # Check if the value is a readable file - if [[ -r "$value" ]]; then + if [[ -f "$value" && -r "${value}" ]] && file -b "$value" | grep -q "text"; then # Print the header with the realpath of the file echo "File: $(realpath "$value")"