feat: add distro compatibility check for system restore process

This commit is contained in:
kake26 2025-05-10 21:29:00 -05:00
parent 11d375b38b
commit 67109343ef
Signed by: kake26
GPG key ID: E0A989B571D1F99F
3 changed files with 37 additions and 1 deletions

View file

@ -76,6 +76,11 @@ function restore_config() {
cprint 2 "Done!"
}
echo "Distro check..."
check_distro
# Check for root only important on pure Debian as there is no sudo by default
if [ "$(id -u)" != "0" ]; then
# check is the system is debian
@ -84,8 +89,10 @@ if [ "$(id -u)" != "0" ]; then
fi
fi
until [ "$selection" = "0" ]; do
clear
#clear
echo ""
cprint 3 " Main Menu"
mprint 1 "Restore"