Skip to content

Instantly share code, notes, and snippets.

@incanus
Created December 6, 2011 19:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save incanus/1439543 to your computer and use it in GitHub Desktop.
Save incanus/1439543 to your computer and use it in GitHub Desktop.
Hubot update script
#!/bin/sh
# Script by @incanus to update Hubot from release tarballs since
# repo tags are meant for development.
if [ -z $1 ]; then
echo "Usage: $0 <version>"
exit 1
fi
START=$( basename "`pwd`" )
VERSION=$1
echo "Fetching Hubot $VERSION..."
curl -# -L https://github.com/downloads/github/hubot/hubot-$VERSION.tar.gz > /tmp/hubot-$VERSION.tar.gz
cd ..
mv $START hubot
tar xvzf /tmp/hubot-$VERSION.tar.gz
mv hubot $START
cd $START
echo "Done updating!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment