install-git-annex 399 B

1234567891011121314
  1. #!/bin/bash
  2. #
  3. # Install git-annex. Any environment setup to source would be
  4. # written to ${HOME}/dlinstaller_env.sh
  5. #
  6. set -e -u
  7. # no install requested -> exit
  8. [ -z "$1" ] && exit 0 || true
  9. # assumes a virtualenv or equivalent python env
  10. # get the installer for this
  11. python -m pip install datalad-installer${DATALAD_INSTALLER_VERSION:-}
  12. datalad-installer -E ${HOME}/dlinstaller_env.sh --sudo ok $*