From ff53007b62c22eedda265e13bbce3893626794fe Mon Sep 17 00:00:00 2001 From: emma Date: Tue, 8 Nov 2022 19:30:31 -0500 Subject: [PATCH] removed trailing spaces from output --- tomcat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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