mirror of
https://github.com/Phantop/appdwarf.git
synced 2024-11-09 08:26:22 +00:00
22 lines
369 B
Bash
Executable file
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
|