Remove trailing whitespace from GIT_STATUS variable

This commit is contained in:
xylous 2021-05-19 18:23:27 +03:00
parent e05101d358
commit 88430f3835

View File

@ -82,6 +82,9 @@ function parse_git_status() {
GIT_STATUS+="${GIT_MODIFIED}${GIT_STAGED}"
GIT_STATUS+="${GIT_DELETED}${GIT_UNTRACKED}"
GIT_STATUS+="${FG_CLR}"
# Remove trailing whitespace
GIT_STATUS="$(sed 's/[ ]+$//' <<<"$GIT_STATUS")"
}
###