From 536298dd700a985e593e42574ede8b47f0171bca Mon Sep 17 00:00:00 2001 From: akanealw Date: Wed, 8 Oct 2025 21:59:59 +0000 Subject: [PATCH] updated essentials script with verison check --- debian/debian-essentials.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/debian-essentials.sh b/debian/debian-essentials.sh index 28a3999..2b93dfb 100755 --- a/debian/debian-essentials.sh +++ b/debian/debian-essentials.sh @@ -6,6 +6,14 @@ if [ "$EUID" -ne 0 ] exit fi +# check debian version +read -d . VERSION < /etc/debian_version + if [ $VERSION -eq 13] + then + echo "Wrong Version" + exit + fi + # autoreply config update dialog with default answer no if [[ ! -f /etc/apt/apt.conf.d/local ]] then