-
-
Save thbar/1697974 to your computer and use it in GitHub Desktop.
Hubot update script
This file contains hidden or 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/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