Suppress output from running which sw_vers

pull/6/head
Paul Morie 2015-11-02 23:32:42 -05:00
parent 17e36b02f4
commit b38e114889
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ function kube-up {
# curl in mavericks is borked.
secure=""
if which sw_vers > /dev/null; then
if which sw_vers >& /dev/null; then
if [[ $(sw_vers | grep ProductVersion | awk '{print $2}') = "10.9."* ]]; then
secure="--insecure"
fi