Skip to content

Commit

Permalink
Add check for debootstrap and perl
Browse files Browse the repository at this point in the history
  • Loading branch information
Kron4ek authored Oct 22, 2021
1 parent e68a2a1 commit 2c127c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions create_ubuntu_chroots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ if [ "$EUID" != 0 ]; then
exit 1
fi

if ! command -v debootstrap 1>/dev/null || ! command -v perl 1>/dev/null; then
echo "Please install debootstrap and perl and run the script again"
exit 1
fi

# Keep in mind that although you can choose any version of Ubuntu/Debian
# here, but this script has only been tested with Ubuntu 18.04 Bionic
export CHROOT_DISTRO="bionic"
Expand Down

0 comments on commit 2c127c8

Please sign in to comment.