homogenized function names
This commit is contained in:
parent
3e82f01a28
commit
7c13e1b9d3
1 changed files with 3 additions and 3 deletions
|
|
@ -1083,7 +1083,7 @@ compare-versions(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
identify_system() {
|
identify-system() {
|
||||||
if type lsb_release >/dev/null 2>&1; then
|
if type lsb_release >/dev/null 2>&1; then
|
||||||
ID=$(lsb_release -si)
|
ID=$(lsb_release -si)
|
||||||
OS=$(lsb_release -si)
|
OS=$(lsb_release -si)
|
||||||
|
|
@ -1120,7 +1120,7 @@ identify_system() {
|
||||||
"VER: $VER"
|
"VER: $VER"
|
||||||
}
|
}
|
||||||
|
|
||||||
install_packages() {
|
install-packages() {
|
||||||
declare -a packages=()
|
declare -a packages=()
|
||||||
declare -a offline_packages=()
|
declare -a offline_packages=()
|
||||||
for arg in "$@"; do
|
for arg in "$@"; do
|
||||||
|
|
@ -1130,7 +1130,7 @@ identify_system() {
|
||||||
packages+=("$arg")
|
packages+=("$arg")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
identify_system
|
identify-system
|
||||||
case $ID in
|
case $ID in
|
||||||
amzn | centos | fedora | rhel)
|
amzn | centos | fedora | rhel)
|
||||||
[ "${#packages[@]}" -gt 0 ] && run sudo yum install -y "${packages[@]}"
|
[ "${#packages[@]}" -gt 0 ] && run sudo yum install -y "${packages[@]}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue