autopatchelf.sh: add link about grep -q

This commit is contained in:
happysalada 2021-06-24 19:37:05 +09:00 committed by Raphael Megzari
parent a7d7e40c00
commit 2bf424d6cc

View File

@ -29,6 +29,7 @@ isExecutable() {
isExeResult="$(LANG=C $READELF -h -l "$1" 2> /dev/null \
| grep '^ *Type: *EXEC\>\|^ *INTERP\>')"
# not using grep -q, because it can cause Broken pipe
# https://unix.stackexchange.com/questions/305547/broken-pipe-when-grepping-output-but-only-with-i-flag
[ -n "$isExeResult" ]
}