Update shell setup for python with macOS specific logic

This commit is contained in:
2020-04-08 00:11:38 +01:00
parent b6743bd1c3
commit f36d68cdff

View File

@@ -10,7 +10,7 @@ install_python_global_packages () {
'yamllint' 'yamllint'
) )
if (( $+commands[brew] )); then if [[ "$OSTYPE" == "darwin"* ]] && (( $+commands[brew] )); then
brew list python >/dev/null || brew install python brew list python >/dev/null || brew install python
fi fi