-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf16e40
commit cbc1429
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
# -------------------------- | ||
# Irk Launcher version 0.4.3 | ||
# -------------------------- | ||
# | ||
# Irk is a simplistic build tool for Scala. This launcher script will download and run Irk, replacing this | ||
# script in the process. | ||
# | ||
# For more information, see https://github.com/propensive/irk/ | ||
# | ||
# Irk, version 0.4.3. Copyright 2021 Jon Pretty, Propensive OÜ. | ||
|
||
if [ ! "$(command -v java)" ] | ||
then | ||
echo "It does not look like Java is installed. The 'java' command must be available on the path." | ||
elif [ "$(java -version 2>&1 | head -n1 | awk -F '"' '{print $2}' | awk -F '.' '{print $1}')" -lt "11" ] | ||
then | ||
echo "It looks like the install version of Java is not recent enough. Java 11 is required to run Irk." | ||
elif [ ! "$(command -v curl)" ] | ||
then | ||
echo "The 'curl' command must be available to download Irk. Please install Curl and try again." | ||
else | ||
echo "Downloading Irk 0.4.3..." | ||
curl -Lso "$0.tmp" "https://github.com/propensive/irk/releases/download/v0.4.3/irk-0.4.3" | ||
echo "Downloaded $(du -sh "$0.tmp" | cut -d' ' -f1)" | ||
echo 'Launching Irk for the first time...' | ||
chmod +x "$0.tmp" | ||
mv "$0.tmp" "$0" | ||
exec "$0" "$@" | ||
fi | ||
echo "Please install Java version 11 or later. See https://adoptium.net/ for free OpenJDK distributions." | ||
exit 1 |