From 83fdb85e277538b18e0ef468f37d72723e8f3ce4 Mon Sep 17 00:00:00 2001 From: rindeal Date: Thu, 23 May 2024 18:57:20 +0000 Subject: [PATCH] Update test-2.yml --- .github/workflows/test-2.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-2.yml b/.github/workflows/test-2.yml index 78a0612..392a134 100644 --- a/.github/workflows/test-2.yml +++ b/.github/workflows/test-2.yml @@ -22,9 +22,10 @@ jobs: # Get the value of the environment variable value="${!var}" realpath="$( realpath "$value" 2>/dev/null )" + [[ -z "${realpath}" || ! -f "${realpath}" ]] && continue echo "Testing '$value'" - file --mime-encoding "$value" + file --mime-encoding "$realpath" # Check if the value is a readable file if file -b "$value" | grep -q "text" ; then