Ensure we have a kali patched live-build

debian-cd
Raphaël Hertzog 10 years ago
parent a76b36ec0b
commit 7a4de464f3

@ -109,7 +109,11 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Or we ensure we have proper version installed
ver_live_build=$(dpkg-query -f '${Version}' -W live-build)
if dpkg --compare-versions "$ver_live_build" lt 4.0.4-1kali2; then
echo "You need live-build (>= 4.0.4-1kali2), you have $ver_live_build" >&2
echo "ERROR: You need live-build (>= 4.0.4-1kali2), you have $ver_live_build" >&2
exit 1
fi
if ! echo "$ver_live_build" | grep -q kali; then
echo "ERROR: You need a Kali patched live-build. Your current version: $ver_live_build"
exit 1
fi

Loading…
Cancel
Save