Skip to content

Instantly share code, notes, and snippets.

@gubatron
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gubatron/863a3484f2ca1c7c7d68 to your computer and use it in GitHub Desktop.
Save gubatron/863a3484f2ca1c7c7d68 to your computer and use it in GitHub Desktop.
fwpull - script to pull the latest changes from all frostwire repositories

add this somewhere on your .bash_profile (or .bashrc if on ubuntu) and make sure to adjust the PARENT_DIR variable to your local environment.

function fwpull {
  PARENT_DIR=~/workspace.frostwire

  for f in $PARENT_DIR/frostwire-common	$PARENT_DIR/frostwire-jlibtorrent $PARENT_DIR/frostwire-desktop	$PARENT_DIR/frostwire-android; do
      if [ -d "$f" ]; then
      	  pushd	$f
      	  git pull
      	  popd
      fi
  done
}

If you want to pull all the latest changes from all frostwire git repositories you might be working with just type:

fwpull

Enjoy @gubatron

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