mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Merge pull request #109 from jkoelndorfer/next
Fixing issue where BSD detection can bleed info to stdout.
This commit is contained in:
commit
19caa39333
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue