Stop redirecting stderr of bsdtar to /dev/null

It's extremely hard to figure out what's going from when bsdtar fails
here when we expect it to succeed. Stop tunneling stderr to /dev/null
to help users figure out what's going on when this fails.
This commit is contained in:
Daan De Meyer 2024-02-19 23:09:59 +01:00 committed by Allan McRae
parent 85c421f1cb
commit bcd4aad16c

View file

@ -452,7 +452,7 @@ add() {
fi fi
pkgfile=$1 pkgfile=$1
if ! bsdtar -tqf "$pkgfile" .PKGINFO >/dev/null 2>&1; then if ! bsdtar -tqf "$pkgfile" .PKGINFO >/dev/null; 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