bld/src/scripts/create.sh

15 lines
403 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.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"