diff --git a/SpaceVim.d/snippets/sh.snip b/SpaceVim.d/snippets/sh.snip index 3460e6b..7d61548 100644 --- a/SpaceVim.d/snippets/sh.snip +++ b/SpaceVim.d/snippets/sh.snip @@ -1,7 +1,7 @@ snippet OS options head abbr determine OS type(Mac/Linux/Windows) - if [ "$(uname)" == "Darwin" ]; then - elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then - elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then + if [[ "$(uname)" == "Darwin" ]]; then + elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then + elif [[ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]]; then fi