From 3fcbd76927579e1347338c2faff672450ec52d19 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Sun, 8 Aug 2021 21:53:42 -0400 Subject: [PATCH] lib/helpers: use `$OSTYPE` instead of `$(uname)` --- lib/helpers.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 lib/helpers.bash diff --git a/lib/helpers.bash b/lib/helpers.bash old mode 100644 new mode 100755 index 26956193..34149040 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -11,8 +11,8 @@ BASH_IT_LOAD_PRIORITY_SEPARATOR="---" # To use this in Bash-it for inline replacements with `sed`, use the following syntax: # sed "${BASH_IT_SED_I_PARAMETERS[@]}" -e "..." file BASH_IT_SED_I_PARAMETERS=(-i) -case "$(uname)" in - Darwin*) BASH_IT_SED_I_PARAMETERS=(-i "") +case "$OSTYPE" in + 'darwin'*) BASH_IT_SED_I_PARAMETERS=(-i "") esac function _command_exists ()