simplified install
This commit is contained in:
+10
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user