remove additional spaces

This commit is contained in:
David Refoua 2022-10-15 12:38:25 +03:30 committed by GitHub
parent 7f682653e4
commit 9aa26c46d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,15 +12,15 @@ function getGitStatusSetting() {
function getSimpleGitBranch() { function getSimpleGitBranch() {
gitDir=$(git rev-parse --git-dir 2>/dev/null) gitDir=$(git rev-parse --git-dir 2>/dev/null)
if [ -z "$gitDir" ]; then if [ -z "$gitDir" ]; then
return 0 return 0
fi fi
headContent=$(< "$gitDir/HEAD") headContent=$(< "$gitDir/HEAD")
if [[ "$headContent" == "ref: refs/heads/"* ]] if [[ "$headContent" == "ref: refs/heads/"* ]]
then then
echo " (${headContent:16})" echo " (${headContent:16})"
else else
echo " (HEAD detached at ${headContent:0:7})" echo " (HEAD detached at ${headContent:0:7})"
fi fi
} }