Skip to content

Instantly share code, notes, and snippets.

@adambutler
Created May 10, 2016 09:50
Show Gist options
  • Save adambutler/9055ff0096c1142079f6540a31d24028 to your computer and use it in GitHub Desktop.
Save adambutler/9055ff0096c1142079f6540a31d24028 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
TAR=git-lfs-linux-amd64-1.2.0.tar.gz
URL=https://github.com/github/git-lfs/releases/download/v1.2.0/$TAR
if ! [ -e $SEMAPHORE_CACHE_DIR/$TAR ]; then (cd $SEMAPHORE_CACHE_DIR; wget $URL); fi
sudo mkdir -p /opt/git-lfs
sudo tar -xzf $SEMAPHORE_CACHE_DIR/$TAR -C /opt/git-lfs --strip=1
cd /opt/git-lfs/ && sudo bash install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment