aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorJohn Koelndorfer <jkoelndorfer@gmail.com>2015-10-06 18:20:52 +0300
committerJohn Koelndorfer <jkoelndorfer@gmail.com>2015-10-06 18:30:14 +0300
commit66b4194daf1970b7a000f9c3bdb2fdd34727af33 (patch)
tree9b688dfda4f48125b8831aafa6cf7aaba1c58fda /powerlevel9k.zsh-theme
parent3e7caf5ca6abf53fd139480baaab83359c9fd0ce (diff)
Quote value of IS_BSD_SED.
If this isn't quoted, in can bleed through to stdout in certain circumstances.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme3
1 files changed, 1 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 0c69a02e..c2ee2625 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -317,8 +317,7 @@ esac
# `sed` is unfortunately not consistent across OSes when it comes to flags.
SED_EXTENDED_REGEX_PARAMETER="-r"
if [[ "$OS" == 'OSX' ]]; then
- local IS_BSD_SED
- IS_BSD_SED=$(sed --version &>> /dev/null || echo "BSD sed")
+ local IS_BSD_SED="$(sed --version &>> /dev/null || echo "BSD sed")"
if [[ -n "$IS_BSD_SED" ]]; then
SED_EXTENDED_REGEX_PARAMETER="-E"
fi