From 7a4de464f3e347220dce913f5315421a20381a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Fri, 20 Feb 2015 20:52:31 +0100 Subject: [PATCH] Ensure we have a kali patched live-build --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 798e7f9..51c7154 100755 --- a/build.sh +++ b/build.sh @@ -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