diff --git a/functions b/functions index 90ee8d6..dd2708d 100644 --- a/functions +++ b/functions @@ -12,7 +12,7 @@ function shownetinfo() { IP=$(ifconfig | grep -v "127.0.0.1" | grep "inet " | head -1 | cut -d " " -f2) fi if [ "$NET" != "" ]; then - GW=$(dig +short myip.opendns.com @resolver1.opendns.com) + GW=$(curl -s icanhazip.com) fi tput setaf 7; tput bold; echo -en "Net: " tput sgr0 diff --git a/setup.sh b/setup.sh index f4bc4f4..3cd1930 100755 --- a/setup.sh +++ b/setup.sh @@ -11,7 +11,7 @@ elif [ "$OSTYPE" = "Darwin" ]; then echo "Install Homebrew? [y/n]" read homebrew if [ "$homebrew" = "y" ]; then - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew bundle install --file=Brewfile fi fi