Sha256: 3f6a8a0c85fc46e943207729361409278251f946aad12fdf57fbefdce334deb8

Contents?: true

Size: 543 Bytes

Versions: 2

Compression:

Stored size: 543 Bytes

Contents

#!/bin/bash

set -eu

LINTJE_VERSION="0.5.0"

mkdir -p $HOME/bin
cache_key=v1-lintje-$LINTJE_VERSION
cache restore $cache_key

# File exists and is executable
if [ -x "$HOME/bin/lintje" ]; then
  echo "Restored Lintje $LINTJE_VERSION from cache"
else
  echo "Downloading Lintje $LINTJE_VERSION"
  curl -L \
    https://github.com/tombruijn/lintje/releases/download/v$LINTJE_VERSION/x86_64-unknown-linux-gnu.tar.gz | \
    tar -xz --directory $HOME/bin
  cache store $cache_key $HOME/bin/lintje
fi

$HOME/bin/lintje $SEMAPHORE_GIT_COMMIT_RANGE

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appsignal-3.0.15-java script/lint_git
appsignal-3.0.15 script/lint_git