diff options
author | Colin Watson <cjwatson@debian.org> | 2017-07-24 14:39:30 (GMT) |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-07-24 14:39:30 (GMT) |
commit | b24b3b113aa0661726c2b7ecfc19ef8e3fea16b9 (patch) | |
tree | ea1b6f4b7cbc8aad3e9e7e18877f9163721ae49c /debootstrap | |
parent | ae81b35427a2bbc89131814cfab0aad8cac8a160 (diff) | |
download | debootstrap-b24b3b113aa0661726c2b7ecfc19ef8e3fea16b9.zip debootstrap-b24b3b113aa0661726c2b7ecfc19ef8e3fea16b9.tar.gz debootstrap-b24b3b113aa0661726c2b7ecfc19ef8e3fea16b9.tar.bz2 |
Use in_path to handle --extractor too
Diffstat (limited to '')
-rwxr-xr-x | debootstrap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debootstrap b/debootstrap index 4658e0f..fcdb20f 100755 --- a/debootstrap +++ b/debootstrap @@ -231,7 +231,7 @@ if [ $# != 0 ] ; then error 1 NEEDARG "option requires an argument %s" "$1" fi if valid_extractor "$EXTRACTOR_OVERRIDE"; then - if ! type "$EXTRACTOR_OVERRIDE" >/dev/null 2>&1; then + if ! in_path "$EXTRACTOR_OVERRIDE"; then error 1 MISSINGEXTRACTOR "The selected extractor cannot be found: %s" "$EXTRACTOR_OVERRIDE" fi else |