Skip to content

Instantly share code, notes, and snippets.

@yzaguirre
Last active December 19, 2015 18:09
Show Gist options
  • Save yzaguirre/5996485 to your computer and use it in GitHub Desktop.
Save yzaguirre/5996485 to your computer and use it in GitHub Desktop.
Bash Script that updates Bittorrent Sync.
#/bin/bash
# based on http://forum.bittorrent.com/topic/21590-shell-script-i-wrote-to-update-btsync-on-linuxunix/
#
# Location must reside next to the "btsync" binary
#
# give execution permission
# $ chmod u+x btupdater.sh
# run like:
# ./btupdater.sh http://syncapp.bittorrent.com/1.1.33/btsync_x64-1.1.33.tar.gz
killall -2 btsync
wget $1 -O download.tar.gz
rm btsync
tar -xzvf download.tar.gz && rm download.tar.gz
./btsync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment