summaryrefslogtreecommitdiffstats
path: root/git-base.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-08-06 10:03:34 +0100
committerMichael Allen <michael@michaelallen.io>2015-08-06 10:03:34 +0100
commitbff1f0488e7b3cb1f4b89c698dbc282bd9a5c0aa (patch)
tree1a1d37a9020a0a458e6785739c0227816c22996f /git-base.sh
parent6b40c172f04036931886a92c200197ef7bd9917f (diff)
downloadgit-sonar-bff1f0488e7b3cb1f4b89c698dbc282bd9a5c0aa.tar.gz
git-sonar-bff1f0488e7b3cb1f4b89c698dbc282bd9a5c0aa.zip
Preserve whitespace in function results
Diffstat (limited to 'git-base.sh')
-rwxr-xr-xgit-base.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-base.sh b/git-base.sh
index afd4f7e..11a88c5 100755
--- a/git-base.sh
+++ b/git-base.sh
@@ -331,7 +331,7 @@ bash_color_changes_status() {
changes="$staged_changes$conflicted_changes$unstaged_changes$untracked_changes"
fi
- echo $changes
+ echo "$changes"
}
zsh_color_changes_status() {
@@ -367,7 +367,7 @@ zsh_color_changes_status() {
changes="$staged_changes$conflicted_changes$unstaged_changes$untracked_changes"
fi
- echo $changes
+ echo "$changes"
}
bash_color_local_commits() {
@@ -393,7 +393,7 @@ bash_color_local_commits() {
fi
fi
fi
- echo $local_commits
+ echo "$local_commits"
}
zsh_color_local_commits() {
@@ -419,5 +419,5 @@ zsh_color_local_commits() {
fi
fi
fi
- echo $local_commits
+ echo "$local_commits"
}