Merge pull request #130601 from happysalada/stdenv_cosmetic

Stdenv cosmetic
This commit is contained in:
Jörg Thalheim 2021-07-23 09:45:43 +01:00 committed by GitHub
commit 7bf8b97d68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

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" ]
}