mirror of
https://github.com/rife2/bld
synced 2025-12-24 10:08:37 +01:00
15 lines
403 B
Bash
15 lines
403 B
Bash
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
version=$(curl -Ls -o /dev/null -w "%{url_effective}" https://github.com/rife2/bld/releases/latest)
|
||
|
|
version=${version##*/}
|
||
|
|
filepath=$(mktemp -u -t "bld-$version.jar")
|
||
|
|
|
||
|
|
echo "Downloading bld v$version..."
|
||
|
|
echo
|
||
|
|
|
||
|
|
curl -L -s "https://github.com/rife2/bld/releases/download/$version/bld-$version.jar" -o "$filepath"
|
||
|
|
|
||
|
|
echo "Welcome to bld v$version."
|
||
|
|
java -jar "$filepath" create
|
||
|
|
|
||
|
|
rm -f "$filepath"
|