From c07e381f94c5b1ab08641fd2e4c2fe918064bb21 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Fri, 1 Apr 2016 08:08:52 +0200 Subject: [PATCH] hooks/pre-pkg: fix "integer expression expected" error. --- common/hooks/pre-pkg/03-rewrite-python-shebang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh index b928ec3a39..c7384b4acd 100644 --- a/common/hooks/pre-pkg/03-rewrite-python-shebang.sh +++ b/common/hooks/pre-pkg/03-rewrite-python-shebang.sh @@ -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"