hooks/pre-pkg: fix "integer expression expected" error.
This commit is contained in:
parent
24537c74f1
commit
c07e381f94
|
@ -26,7 +26,7 @@ hook() {
|
|||
shebang="#!/usr/bin/python$pyver"
|
||||
find ${PKGDESTDIR} -type f -print0 | \
|
||||
xargs -0 grep -H -b -m 1 "^#!.*\([[:space:]]\|/\)python\([[:space:]]\|$\)" -- | while IFS=: read -r f off _; do
|
||||
[ "$off" -eq 0 ] || continue
|
||||
[ "$off" -a "$off" -eq 0 ] || continue
|
||||
if [ "$warn" ]; then
|
||||
msg_warn "$pkgname: multiple python versions defined!"
|
||||
msg_warn "$pkgname: using $pyver for shebang"
|
||||
|
|
Loading…
Reference in New Issue