Skip to content

Commit

Permalink
fix parsing to include assignxl
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-baez committed Jan 30, 2024
1 parent d9a0122 commit a2724df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js2-autoscaling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2724df

Please sign in to comment.