diff --git a/tomcat b/tomcat index ed6b3dd..55830e0 100755 --- a/tomcat +++ b/tomcat @@ -41,7 +41,7 @@ VAL=$(printf "%s\n" "$TOML" |\ # remove the key from the string and delineate arrays, removing # brackets, trailing commas, and leading spaces sed -n "s/$KEY *= *//p" | sed 's/", "/ /g' | tr -d '[]"' |\ - sed 's/, *$//g' | sed 's/^ *//g') + sed 's/, *$//g' | sed 's/^ \+//g' | sed 's/ \+$//g') # test if ARR is set; if it is, then we have an array index to grab if test -n "$ARR"; then