Skip to content

Instantly share code, notes, and snippets.

@mislav
Created August 14, 2016 11:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mislav/1e1576216f0a1cce33dd48bb841bfd20 to your computer and use it in GitHub Desktop.
Save mislav/1e1576216f0a1cce33dd48bb841bfd20 to your computer and use it in GitHub Desktop.
Script to keep your Twitter archive up to date
#!/bin/bash
set -e
cd "${0%/*}"
export GEM_HOME="${PWD}/.gem"
export GEM_PATH="$GEM_HOME"
if [ ! -x "${GEM_HOME}/bin/grailbird_updater" ]; then
/usr/bin/gem install grailbird_updater --no-rdoc --no-ri
fi
"${GEM_HOME}/bin/grailbird_updater" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment