From c7d8601e125de432f185c146c84333ca7d920d9a Mon Sep 17 00:00:00 2001 From: Cedric Staniewski Date: Tue, 12 May 2009 10:59:34 +0200 Subject: 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 Signed-off-by: Dan McGee --- scripts/repo-add.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/repo-add.sh.in') 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 -- cgit v1.2.3-24-g4f1b