From 893bc5aa5f9cca77ff26124600ad80ee0b7f1f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Tue, 8 May 2018 12:35:43 +0000 Subject: [PATCH] Update build script for debootstrap 1.0.97 or higher --- build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index e977097..16f2982 100755 --- a/build.sh +++ b/build.sh @@ -141,9 +141,11 @@ fi # Check we have a good debootstrap ver_debootstrap=$(dpkg-query -f '${Version}' -W debootstrap) -if ! echo "$ver_debootstrap" | grep -q kali; then - echo "ERROR: You need a Kali patched debootstrap. Your current version: $ver_debootstrap" >&2 - exit 1 +if dpkg --compare-versions "$ver_debootstrap" lt "1.0.97"; then + if ! echo "$ver_debootstrap" | grep -q kali; then + echo "ERROR: You need debootstrap >= 1.0.97 (or a Kali patched debootstrap). Your current version: $ver_debootstrap" >&2 + exit 1 + fi fi # We need root rights at some point