From ae81b35427a2bbc89131814cfab0aad8cac8a160 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 24 Jul 2017 15:38:26 +0100 Subject: Remove unnecessary redirections of in_path --- functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions b/functions index 982174d..3cfa0d4 100644 --- a/functions +++ b/functions @@ -899,7 +899,7 @@ extract_ar_deb_field () { *) error 1 UNKNOWNCONTROLCOMP "Unknown compression type for %s in %s" "$tarball" "$pkg" ;; esac - if in_path $cat_cmd >/dev/null 2>&1; then + if in_path $cat_cmd; then ar -p "$pkg" "$tarball" | $cat_cmd | tar -O -xf - control ./control 2>/dev/null | grep -i "^$field:" | sed -e 's/[^:]*: *//' | head -n 1 @@ -920,7 +920,7 @@ extract_ar_deb_data () { *) error 1 UNKNOWNDATACOMP "Unknown compression type for %s in %s" "$tarball" "$pkg" ;; esac - if in_path $cat_cmd >/dev/null 2>&1; then + if in_path $cat_cmd; then ar -p "$pkg" "$tarball" | $cat_cmd | tar $EXTRACT_DEB_TAR_OPTIONS -xf - else error 1 UNPACKCMDUNVL "Extracting %s requires the %s command, which is not available" "$pkg" "$cat_cmd" @@ -944,7 +944,7 @@ choose_extractor () { if [ -n "$EXTRACTOR_OVERRIDE" ]; then extractor="$EXTRACTOR_OVERRIDE" - elif in_path dpkg-deb >/dev/null 2>&1; then + elif in_path dpkg-deb; then extractor="dpkg-deb" else extractor="ar" -- cgit v0.12