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>
This commit is contained in:
parent
ab3c6f01f5
commit
c7d8601e12
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ add()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pkgfile=$1
|
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"
|
error "$(gettext "'%s' is not a package file, skipping")" "$pkgfile"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue