diff options
author | Samuel Thibault <sthibault@debian.org> | 2012-12-27 15:37:42 +0100 |
---|---|---|
committer | Samuel Thibault <sthibault@debian.org> | 2012-12-27 15:37:42 +0100 |
commit | f86a74ff68d1cd366b742d3991c33051989bcf6f (patch) | |
tree | 4c1a9253f255f7e5f871b6304699f9ff8d30f188 /functions | |
parent | c7f32c0676e1238f0ba93a91e61419f309ecb51b (diff) | |
download | debootstrap-f86a74ff68d1cd366b742d3991c33051989bcf6f.tar.gz |
Revert to using which, but only in non-d-i
which is only if /bin/sh does not exist
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1299,8 +1299,11 @@ check_sane_mount () { ;; esac + SH=/bin/sh + [ -x $SH ] || SH=`which sh` + cat > "$1/test-exec" <<EOF -#! `type sh` +#! $SH : EOF chmod +x "$1/test-exec" |