Skip to content

Commit

Permalink
Update test-2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rindeal authored May 23, 2024
1 parent 83fdb85 commit 447dd7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ jobs:
realpath="$( realpath "$value" 2>/dev/null )"
[[ -z "${realpath}" || ! -f "${realpath}" ]] && continue
echo "Testing '$value'"
file --mime-encoding "$realpath"
#echo "Testing '$value'"
# Check if the value is a readable file
if file -b "$value" | grep -q "text" ; then
if ! file --mime-encoding "$realpath" | grep -q "binary" ; then
# Print the header with the realpath of the file
printf '%s=File: `%s`' "$var" "$value"
[[ "$value" != "$realpath" ]] && echo " [$realpath]" || echo
Expand Down

0 comments on commit 447dd7d

Please sign in to comment.