Skip to content

Instantly share code, notes, and snippets.

@thbar
Forked from incanus/gist:1439543
Created January 29, 2012 09:14
Show Gist options
  • Save thbar/1697974 to your computer and use it in GitHub Desktop.
Save thbar/1697974 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