fix snippet OS

This commit is contained in:
hophacker 2020-10-25 18:09:32 +08:00
parent 92d17d5e20
commit 8d77aee01a

View File

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