Created
March 1, 2012 16:02
-
-
Save codatory/1950778 to your computer and use it in GitHub Desktop.
Automatically run the current latest check_update script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
YUM=`which yum 2> /dev/null` | |
APT=`which apt-get 2> /dev/null` | |
YUM_GIST=1926743 | |
APT_GIST=1926909 | |
if [ $YUM ]; then | |
bash < <(curl --location --silent https://raw.github.com/gist/$YUM_GIST) | |
fi | |
if [ $APT ]; then | |
bash < <(curl --location --silent https://raw.github.com/gist/$APT_GIST) | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run easily w/ this command: