1
0
Fork 0

cat-highlight: Fix error check

It caused cat-highlight to always return with an error status.
This commit is contained in:
tastytea 2022-04-25 00:16:38 +02:00
parent d2e68c5c8f
commit 23ad6625ba
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 1 deletions

View File

@ -50,5 +50,5 @@ done
for file in ${files}; do
eval "${catopen/\%s/${file}}" 2>& -
[[ ${?} -ne 0 ]] && \cat ${file}
[[ ${?} -eq 0 ]] || \cat ${file}
done | \cat ${args}