mirror of https://github.com/sbt/sbt.git
21 lines
399 B
Bash
Executable File
21 lines
399 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# set -x
|
|
|
|
HERE="`dirname $0`"
|
|
VERSION="1.2.0"
|
|
COURSIER="$HERE/.coursier"
|
|
SCALAFMT="$HERE/.scalafmt-$VERSION"
|
|
|
|
if [ ! -f $COURSIER ]; then
|
|
curl -L -o $COURSIER https://git.io/vgvpD
|
|
chmod +x $COURSIER
|
|
fi
|
|
|
|
if [ ! -f $SCALAFMT ]; then
|
|
$COURSIER bootstrap com.geirsson:scalafmt-cli_2.11:$VERSION --main org.scalafmt.cli.Cli -o $SCALAFMT
|
|
chmod +x $SCALAFMT
|
|
fi
|
|
|
|
$SCALAFMT "$@"
|