lots of exercises in java... from https://github.com/exercism/java

fetch-configlet 306B

123456789
  1. #!/bin/bash
  2. LATEST=https://github.com/exercism/configlet/releases/latest
  3. VERSION="$(curl --head --silent $LATEST | awk -v FS=/ '/Location:/{print $NF}' | tr -d '\r')"
  4. URL=https://github.com/exercism/configlet/releases/download/$VERSION/configlet-linux-amd64.tgz
  5. curl -s --location $URL | tar xz -C bin/