Skip to content

Instantly share code, notes, and snippets.

@codatory
Created March 1, 2012 16:02
Show Gist options
  • Save codatory/1950778 to your computer and use it in GitHub Desktop.
Save codatory/1950778 to your computer and use it in GitHub Desktop.
Automatically run the current latest check_update script
#!/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
@codatory
Copy link
Author

Run easily w/ this command:

bash < <(curl --location --silent https://raw.github.com/gist/1950778)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment