summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-03-01 13:28:42 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:43 +0100
commitf2a30e7d0ee6d4204a8e55a3f03a67c78ddec9ac (patch)
tree6c932afcdc6112ad3736aca9d00c996555529466 /functions
parent7c4a2c4d645e18abc09871cd794190124d5d901a (diff)
downloadlive-build-f2a30e7d0ee6d4204a8e55a3f03a67c78ddec9ac.zip
live-build-f2a30e7d0ee6d4204a8e55a3f03a67c78ddec9ac.tar.gz
Adding missing use of which in defaults setting of bootstrap program.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 5f790d4..d695f00 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -85,7 +85,7 @@ Set_defaults ()
LH_APT_SECURE="${LH_APT_SECURE:-enabled}"
# Setting bootstrap program
- if [ -z "${LH_BOOTSTRAP}" ] || ( [ ! -x "${LH_BOOTSTRAP}" ] && [ "${LH_BOOTSTRAP}" != "copy" ] )
+ if [ -z "${LH_BOOTSTRAP}" ] || ( [ ! -x "$(which ${LH_BOOTSTRAP} 2>/dev/null)" ] && [ "${LH_BOOTSTRAP}" != "copy" ] )
then
if [ -x "/usr/sbin/debootstrap" ]
then