mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-23 13:24:43 +00:00
Quote value of IS_BSD_SED.
If this isn't quoted, in can bleed through to stdout in certain circumstances.
This commit is contained in:
@@ -317,8 +317,7 @@ esac
|
|||||||
# `sed` is unfortunately not consistent across OSes when it comes to flags.
|
# `sed` is unfortunately not consistent across OSes when it comes to flags.
|
||||||
SED_EXTENDED_REGEX_PARAMETER="-r"
|
SED_EXTENDED_REGEX_PARAMETER="-r"
|
||||||
if [[ "$OS" == 'OSX' ]]; then
|
if [[ "$OS" == 'OSX' ]]; then
|
||||||
local IS_BSD_SED
|
local IS_BSD_SED="$(sed --version &>> /dev/null || echo "BSD sed")"
|
||||||
IS_BSD_SED=$(sed --version &>> /dev/null || echo "BSD sed")
|
|
||||||
if [[ -n "$IS_BSD_SED" ]]; then
|
if [[ -n "$IS_BSD_SED" ]]; then
|
||||||
SED_EXTENDED_REGEX_PARAMETER="-E"
|
SED_EXTENDED_REGEX_PARAMETER="-E"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user