appdwarf/apps/mkjava

22 lines
369 B
Bash
Executable file

#!/bin/sh
# shellcheck source=../appdwarf
SOURCE=1 . "$(which appdwarf)"
TYPE=jre
VER=21
while [ $# -gt 0 ]; do
case "$1" in
jdk | JDK )
TYPE=jdk ;;
* )
VER=$1 ;;
esac
shift
done
LINK=https://api.adoptium.net/v3/binary/latest/$VER/ga/linux/x64/"$TYPE"/hotspot/normal/eclipse
ungz
mv "$DIR"/jdk*/* "$DIR"
appb
appmk