cellarspoon 3 years ago
parent
commit
9e59b405d1
No known key found for this signature in database GPG Key ID: 3789458B3D0C410
  1. 10
      bibliotecha.sh

10
bibliotecha.sh

@ -100,22 +100,28 @@ function ensure_buster_based_distribution {
echo "Checking distribution ..."
local installing_on_buster_based=1
local installing_on_bullseye_based=1
if [ ! -f /etc/apt/sources.list ]; then
installing_on_buster_based=
installing_on_bullseye_based=
else
if ! grep -q 'buster' /etc/apt/sources.list; then
installing_on_buster_based=
fi
if ! grep -q 'bullseye' /etc/apt/sources.list; then
installing_on_bullseye_based=
fi
if ! grep -q 'debian' /etc/apt/sources.list; then
if ! grep -q 'raspbian' /etc/apt/sources.list; then
installing_on_buster_based=
installing_on_bullseye_based=
fi
fi
fi
if [ ! $installing_on_buster_based ]; then
echo "You should only run this on a Debian Buster based system"
if [ ! $installing_on_buster_based ] && [ ! $installing_on_bullseye_based ]; then
echo "This installation script only supports a Debian Buster/Bullseye based system, sorry!"
exit 1
fi
}

Loading…
Cancel
Save