summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-21 21:05:32 +0100
committerDaniel Baumann <daniel@debian.org>2007-11-21 21:05:32 +0100
commitcd4bc3078fd3049bb02e9bfe91a853cd4feb906d (patch)
tree1359485764abe7bd3cc9f969edecf81e40bcd587 /functions
parent1be409ac5f9faa59f6e5578d1347889e8046f3a7 (diff)
downloadvyos-live-build-cd4bc3078fd3049bb02e9bfe91a853cd4feb906d.tar.gz
vyos-live-build-cd4bc3078fd3049bb02e9bfe91a853cd4feb906d.zip
Don't fail silently when extern executables are configured but not present.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 0022a3c3d..0d89f4cb7 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -79,7 +79,7 @@ Set_defaults ()
LH_APT_SECURE="${LH_APT_SECURE:-enabled}"
# Setting bootstrap program
- if [ -z "${LH_BOOTSTRAP}" ] || [ ! -x "$(which ${LH_BOOTSTRAP})" ]
+ if [ -z "${LH_BOOTSTRAP}" ]
then
if [ -x "/usr/sbin/debootstrap" ]
then
@@ -139,7 +139,7 @@ Set_defaults ()
fi
# Setting fdisk
- if [ -z "${LH_FDISK}" ] || [ ! -x "${LH_FDISK}" ]
+ if [ -z "${LH_FDISK}" ]
then
# Workaround for gnu-fdisk divertion
# (gnu-fdisk is buggy, #445304).
@@ -155,7 +155,7 @@ Set_defaults ()
fi
# Setting losetup
- if [ -z "${LH_LOSETUP}" ] || [ ! -x "${LH_LOSETUP}" ]
+ if [ -z "${LH_LOSETUP}" ]
then
# Workaround for loop-aes-utils divertion
# (loop-aes-utils' losetup lacks features).