summaryrefslogtreecommitdiffstats
path: root/scripts/repo-add.sh.in
diff options
context:
space:
mode:
authorCedric Staniewski <cedric@gmx.ca>2009-05-12 10:59:34 +0200
committerDan McGee <dan@archlinux.org>2009-10-11 23:34:47 +0200
commitc7d8601e125de432f185c146c84333ca7d920d9a (patch)
tree231516cf6b3179f4b0e7ff703dbd1b37d9a0c1e0 /scripts/repo-add.sh.in
parentab3c6f01f5c884233f718e7f7d5c32b2fdf4ff73 (diff)
downloadpacman-c7d8601e125de432f185c146c84333ca7d920d9a.tar.gz
pacman-c7d8601e125de432f185c146c84333ca7d920d9a.tar.xz
Fix stderr redirection
When redirecting both stderr and stdout and using the 2>&1 construct, you have to redirect stdout first. Otherwise stderr will be redirected to the 'old' stdout and not to the new resource. Signed-off-by: Cedric Staniewski <cedric@gmx.ca> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/repo-add.sh.in')
-rw-r--r--scripts/repo-add.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index bcbd3b37..2a62d2ba 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -357,7 +357,7 @@ add()
fi
pkgfile=$1
- if ! bsdtar -tqf "$pkgfile" .PKGINFO 2>&1 >/dev/null; then
+ if ! bsdtar -tqf "$pkgfile" .PKGINFO >/dev/null 2>&1; then
error "$(gettext "'%s' is not a package file, skipping")" "$pkgfile"
return 1
fi