mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-29 01:38:12 -07:00
15 lines
No EOL
410 B
Bash
Executable file
15 lines
No EOL
410 B
Bash
Executable file
#!/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-XXXXXX.jar")
|
|
|
|
echo "Downloading bld v$version..."
|
|
echo
|
|
|
|
curl -L -s "https://github.com/rife2/bld/releases/download/$version/bld-$version.jar" > "$filepath"
|
|
|
|
echo "Welcome to bld v$version."
|
|
java -jar "$filepath" upgrade
|
|
|
|
rm -f "$filepath" |