From 7c13e1b9d3c00caf7a26a991150384955e78e540 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Thu, 15 Jun 2023 01:52:01 -0700 Subject: [PATCH] homogenized function names --- functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions b/functions index e093497..eeddb4a 100644 --- a/functions +++ b/functions @@ -1083,7 +1083,7 @@ compare-versions(){ fi } -identify_system() { +identify-system() { if type lsb_release >/dev/null 2>&1; then ID=$(lsb_release -si) OS=$(lsb_release -si) @@ -1120,7 +1120,7 @@ identify_system() { "VER: $VER" } - install_packages() { + install-packages() { declare -a packages=() declare -a offline_packages=() for arg in "$@"; do @@ -1130,7 +1130,7 @@ identify_system() { packages+=("$arg") fi done - identify_system + identify-system case $ID in amzn | centos | fedora | rhel) [ "${#packages[@]}" -gt 0 ] && run sudo yum install -y "${packages[@]}"