From 8d77aee01a2d5204739dff2911ea9b462619b64f Mon Sep 17 00:00:00 2001 From: hophacker Date: Sun, 25 Oct 2020 18:09:32 +0800 Subject: [PATCH] fix snippet OS --- SpaceVim.d/snippets/sh.snip | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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