We want to build on Debian too...

This commit is contained in:
Kaj Forney 2020-01-30 15:25:32 -07:00
parent faeefa37cd
commit 267d6fac33
No known key found for this signature in database
GPG Key ID: CBB5B366EB4802DD
2 changed files with 7 additions and 9 deletions

View File

@ -140,13 +140,13 @@ if dpkg --compare-versions "$ver_live_build" lt 1:20151215kali1; then
fi fi
# Check we have a good debootstrap # Check we have a good debootstrap
ver_debootstrap=$(dpkg-query -f '${Version}' -W debootstrap) #ver_debootstrap=$(dpkg-query -f '${Version}' -W debootstrap)
if dpkg --compare-versions "$ver_debootstrap" lt "1.0.97"; then #if dpkg --compare-versions "$ver_debootstrap" lt "1.0.97"; then
if ! echo "$ver_debootstrap" | grep -q kali; 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 # echo "ERROR: You need debootstrap >= 1.0.97 (or a Kali patched debootstrap). Your current version: $ver_debootstrap" >&2
exit 1 # exit 1
fi # fi
fi #fi
# We need root rights at some point # We need root rights at some point
if [ "$(whoami)" != "root" ]; then if [ "$(whoami)" != "root" ]; then

View File

@ -64,8 +64,6 @@ fi
#This is the stuff that's common to both distros #This is the stuff that's common to both distros
rm -rf build rm -rf build
mkdir build mkdir build
git submodule init
git submodule update
apt install git build-essential cdebootstrap live-build debian-cd curl wget -y apt install git build-essential cdebootstrap live-build debian-cd curl wget -y
cd ./debs cd ./debs
bash get-debs.sh bash get-debs.sh