feat: add distro compatibility check for system restore process
This commit is contained in:
parent
11d375b38b
commit
67109343ef
3 changed files with 37 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue