lib/helpers: use `$OSTYPE` instead of `$(uname)`

pull/1911/head
John D Pell 2021-08-08 21:53:42 -04:00
parent e321a3d657
commit 3fcbd76927
1 changed files with 2 additions and 2 deletions

4
lib/helpers.bash 100644 → 100755
View File

@ -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 ()