Skip to content

Instantly share code, notes, and snippets.

@zerodogg
Last active December 14, 2015 09:19
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 zerodogg/5063951 to your computer and use it in GitHub Desktop.
Save zerodogg/5063951 to your computer and use it in GitHub Desktop.
Wrapper script for the git-annex precompiled linux tarball
#!/bin/sh
# Put this file into the git-annex.linux directory extracted from the tarball,
# and then symlink it into your path as "git".
# Ie:
# ln -s "$PWD/gitwrap.sh" "$HOME/bin/git"
# or
# ln -s "$PWD/gitwrap.sh" "/usr/local/bin/git"
#
# Afterwards you can verify that you're using the git annex version from
# the tarball with:
# git annex version
BASE="`basename "$0"`"
DIR="`realpath "$0"`"
DIR="`dirname "$DIR"`"
exec "$DIR/runshell" "$BASE" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment