Skip to content

Instantly share code, notes, and snippets.

@jbenninghoff
Created February 10, 2023 23:38
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 jbenninghoff/d15f497a6d42bfffe228e3ba751c2524 to your computer and use it in GitHub Desktop.
Save jbenninghoff/d15f497a6d42bfffe228e3ba751c2524 to your computer and use it in GitHub Desktop.
Install scalafmt from URL
#!/bin/bash
set -o nounset; set -o errexit; set -o pipefail
err() {
echo "[$(date +'%Y-%m-%dT%H:%M:%S')]: $*" >&2
}
VERSION=3.6.1
INSTALL_LOCATION=/usr/local/bin/scalafmt-native
curl https://raw.githubusercontent.com/scalameta/scalafmt/master/bin/install-scalafmt-native.sh | \
bash -s -- $VERSION $INSTALL_LOCATION
scalafmt-native --help # should show version 3.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment