From a2724df7b917a9dd95927df698ba52699fae90a0 Mon Sep 17 00:00:00 2001 From: hector-baez Date: Tue, 30 Jan 2024 16:36:45 -0600 Subject: [PATCH] fix parsing to include assignxl --- js2-autoscaling.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js2-autoscaling.sh b/js2-autoscaling.sh index 19ebf81..8a9e97f 100755 --- a/js2-autoscaling.sh +++ b/js2-autoscaling.sh @@ -46,7 +46,7 @@ getB() { local b="0" fi - numbers=($(grep "$name" "$hostname" | sed "s/$name\([0-9]\+\)/\1/g")) + numbers=($(grep "$name" "$hostname" | sed 's/[^0-9]//g')) if [ ${#numbers[@]} -eq 0 ]; then echo "$b" else