Update maintenance script

This commit is contained in:
2024-01-05 19:20:01 +00:00
parent 538f7053f8
commit 9879a927f0
3 changed files with 29 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
# p r package -> remove package
# p c package -> check if package is installed (0 -> installed; 1 -> not installed; 2 -> ERROR)
# d -> returns 1 -> Debian; 2 -> Arch; 0 -> Error
# m -> maintenance script
d() {
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then
@@ -17,6 +18,18 @@ d() {
fi
}
m() {
d=$(d)
if [ $d == 2 ]; then
./arch-maintenance.sh
elif [ $d == 1 ]; then
./debian-maintenance.sh
else
echo "ERROR - Distro not supported."
return 1
fi
}
p() {
# Detect distro type
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then