diff options
author | Colin Watson <cjwatson@debian.org> | 2017-07-24 14:38:26 (GMT) |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-07-24 14:38:26 (GMT) |
commit | ae81b35427a2bbc89131814cfab0aad8cac8a160 (patch) | |
tree | 8f6d5b3b74e700a3ad88ee68b427d55e64853e77 | |
parent | 0c4c27b582dbd9b3a994758f3c09fb1338fd9803 (diff) | |
download | debootstrap-ae81b35427a2bbc89131814cfab0aad8cac8a160.zip debootstrap-ae81b35427a2bbc89131814cfab0aad8cac8a160.tar.gz debootstrap-ae81b35427a2bbc89131814cfab0aad8cac8a160.tar.bz2 |
Remove unnecessary redirections of in_path
-rw-r--r-- | functions | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" |