archlinux support
This commit is contained in:
@@ -18,6 +18,18 @@ function isArray {
|
||||
[[ "$(declare -p "$1" 2>/dev/null)" =~ "declare -a" ]] || return 1
|
||||
}
|
||||
|
||||
function isDebian {
|
||||
grep ^ID=debian /etc/os-release
|
||||
}
|
||||
|
||||
function isArch {
|
||||
grep ^ID=arch /etc/os-release
|
||||
}
|
||||
|
||||
function os-release {
|
||||
grep ^ID= /etc/os-release | cut -d '=' -f2
|
||||
}
|
||||
|
||||
function askConfirmation {
|
||||
case "$1" in
|
||||
y | Y | yes | YES)
|
||||
|
||||
Reference in New Issue
Block a user