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