removed trailing spaces from output
This commit is contained in:
parent
09ba6c7644
commit
ff53007b62
2
tomcat
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user