diff --git a/scripts/utilities.sh b/scripts/utilities.sh index 8d4d385..94a4a13 100644 --- a/scripts/utilities.sh +++ b/scripts/utilities.sh @@ -680,7 +680,7 @@ function set_hostname() { ### returns: name function get_instance_name() { local instance=${1} name - name=$(echo "${instance}" | rev | cut -d"/" -f1 | rev | cut -d"-" -f2 | cut -d"." -f1) + name=$(echo "${instance}" | rev | cut -d"/" -f1 | cut -d"-" -f1 | rev | cut -d"." -f1) echo "${name}" }