Automatically add the missing symlink if we have the required rights

debian-cd 1.0.4
Raphaël Hertzog 12 years ago
parent 610bed1a1b
commit 075690a67d

@ -41,10 +41,14 @@ eval set -- "$temp"
# live-build doesn't work if --parent-debian-distribution is unknown of # 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 # debian-cd => we have to put a symlink so that it deals with kali like wheezy
if [ ! -e /usr/share/live/build/data/debian-cd/$dist ]; then if [ ! -e /usr/share/live/build/data/debian-cd/kali ]; then
echo "ERROR: Run this first" if [ -w /usr/share/live/build/data/debian-cd ]; then
echo "ln -sf wheezy /usr/share/live/build/data/debian-cd/$dist" ln -sf wheezy /usr/share/live/build/data/debian-cd/kali
exit 1 else
echo "ERROR: Run this first:"
echo "ln -sf wheezy /usr/share/live/build/data/debian-cd/kali"
exit 1
fi
fi fi
case "$arch" in case "$arch" in

Loading…
Cancel
Save