diff options
-rw-r--r-- | db-functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db-functions b/db-functions index 830886f..966a713 100644 --- a/db-functions +++ b/db-functions @@ -78,8 +78,8 @@ getpkgver() { } check_pkg_arch () { #check_pkg_arch pkgfile arch - local arch - _arch="$(/usr/bin/bsdtar -xOf "$1" .PKGINFO | /bin/grep "^arch" | /bin/sed 's|\w*\s*=\s*\(.*\)|\1|')" + local _arch + _arch="$(/usr/bin/bsdtar -xOqf "$1" .PKGINFO | /bin/grep "^arch" | /bin/sed 's|\w*\s*=\s*\(.*\)|\1|')" if [ -z "$_arch" ]; then echo "ERROR: Package '$1' has no arch in the PKGINFO. Fail!" |