TVT618

Build Kali Linux with Live-Build - build.sh

Jul 26th, 2018
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. # Check we have a good debootstrap
  2. ver_debootstrap=$(dpkg-query -f '${Version}' -W debootstrap)
  3. if dpkg --compare-versions "$ver_debootstrap" lt "1.0.97"; then
  4.   if ! echo "$ver_debootstrap" | grep -q kali; then
  5.     echo "ERROR: You need debootstrap >= 1.0.97 (or a Kali patched debootstrap). Your current version: $ver_debootstrap" >&2
  6.   exit 1
  7.   fi
  8. fi
Add Comment
Please, Sign In to add comment