mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 05:18:16 -05:00
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
@ -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…
Reference in New Issue
Block a user