diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2009-07-09 17:01:50 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-14 14:42:56 -0700 |
commit | 84a845a0690d6ffb96882699cdc8e9c0e497125d (patch) | |
tree | 72518ae67c6e5b4cf36eaff949ad505514235791 /db-functions | |
parent | 277fc975d2f9f6e6e1142af8dd38b3d3af53e903 (diff) |
fix syntax error
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-functions')
-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!" |