From bcd4aad16c63c5065e428316748b23edc23490af Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 19 Feb 2024 23:09:59 +0100 Subject: [PATCH] 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. --- scripts/repo-add.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 4656f270..faa42fc1 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -452,7 +452,7 @@ add() { fi 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" return 1 fi