simplified install

This commit is contained in:
pvincent
2026-08-08 11:54:48 +04:00
parent 08335be03d
commit 9ff46a896c
3 changed files with 33 additions and 33 deletions
+10 -2
View File
@@ -4,6 +4,14 @@
## ARRAY Functions
## ===============
function is_debian_like {
grep -E 'ID=debian|ID_LIKE=debian' /etc/os-release
}
function is_arch_like {
grep -E 'ID=arch|ID_LIKE=arch' /etc/os-release
}
function _array_contains {
local -n array=$1
local element=$2
@@ -101,11 +109,11 @@ function isArray {
}
function isDebian {
grep ^ID=debian /etc/os-release
grep -q ^ID=debian /etc/os-release
}
function isArch {
grep ^ID=arch /etc/os-release
grep -q ^ID=arch /etc/os-release
}
function os-release {