removed trailing spaces from output

This commit is contained in:
Emma Tebibyte 2022-11-08 19:30:31 -05:00
parent 09ba6c7644
commit ff53007b62
1 changed files with 1 additions and 1 deletions

2
tomcat
View File

@ -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