summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2009-07-09 17:01:50 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-14 23:42:56 +0200
commit84a845a0690d6ffb96882699cdc8e9c0e497125d (patch)
tree72518ae67c6e5b4cf36eaff949ad505514235791 /db-functions
parent277fc975d2f9f6e6e1142af8dd38b3d3af53e903 (diff)
downloaddbscripts-84a845a0690d6ffb96882699cdc8e9c0e497125d.tar.gz
dbscripts-84a845a0690d6ffb96882699cdc8e9c0e497125d.tar.xz
fix syntax error
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions4
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!"