lib/helpers: use `$OSTYPE` instead of `$(uname)`
parent
e321a3d657
commit
3fcbd76927
|
|
@ -11,8 +11,8 @@ BASH_IT_LOAD_PRIORITY_SEPARATOR="---"
|
||||||
# To use this in Bash-it for inline replacements with `sed`, use the following syntax:
|
# To use this in Bash-it for inline replacements with `sed`, use the following syntax:
|
||||||
# sed "${BASH_IT_SED_I_PARAMETERS[@]}" -e "..." file
|
# sed "${BASH_IT_SED_I_PARAMETERS[@]}" -e "..." file
|
||||||
BASH_IT_SED_I_PARAMETERS=(-i)
|
BASH_IT_SED_I_PARAMETERS=(-i)
|
||||||
case "$(uname)" in
|
case "$OSTYPE" in
|
||||||
Darwin*) BASH_IT_SED_I_PARAMETERS=(-i "")
|
'darwin'*) BASH_IT_SED_I_PARAMETERS=(-i "")
|
||||||
esac
|
esac
|
||||||
|
|
||||||
function _command_exists ()
|
function _command_exists ()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue