tylermuch / dotfiles

1 stars 1 forks source link

Check if pip is already installed and if so, don't install it. #1

Closed WowSuchRicky closed 7 years ago

WowSuchRicky commented 7 years ago

I can't PR this since I already have a fork that I am using, but just replace:

sudo easy-install pip

with:

if hash pip 2>/dev/null; then
    echo "pip already installed, exiting..."
    exit
fi

sudo easy_install pip

Per: http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script

tylermuch commented 7 years ago

done

WowSuchRicky commented 7 years ago

cool and good

tylermuch commented 7 years ago

thank