Quote value of IS_BSD_SED.

If this isn't quoted, in can bleed through to stdout in certain
circumstances.
pull/22/head
John Koelndorfer 9 years ago
parent 3e7caf5ca6
commit 66b4194daf

@ -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…
Cancel
Save