From 1e88216758132be8afb55ce03b5920bcef35e6fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Sat, 9 Aug 2014 23:34:51 +0200 Subject: [PATCH] Test the symlink for the distribution being built --- auto/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/auto/config b/auto/config index 21ca766..d0a0f75 100755 --- a/auto/config +++ b/auto/config @@ -45,12 +45,12 @@ eval set -- "$temp" # live-build doesn't work if --parent-debian-distribution is unknown of # debian-cd => we have to put a symlink so that it deals with kali like wheezy -if [ ! -e ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/kali ]; then +if [ ! -e ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/$dist ]; then if [ -w ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd ]; then - ln -sf wheezy ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/kali + ln -sf wheezy ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/$dist else echo "ERROR: Run this first:" - echo "ln -sf wheezy ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/kali" + echo "ln -sf wheezy ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/$dist" exit 1 fi fi