mirror of
https://github.com/Cametendo/Cards-Gate.git
synced 2026-03-18 09:00:19 +01:00
23 lines
450 B
Bash
Executable File
23 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
VERSION="2.13.1"
|
|
URL="https://search.maven.org/remotecontent?filepath=com/google/code/gson/gson/2.13.1/gson-2.13.1.jar"
|
|
|
|
LIB_DIR="./lib"
|
|
JAR_PATH="${LIB_DIR}/gson-${VERSIO}N.jar"
|
|
|
|
|
|
mkdir -p "$LIB_DIR"
|
|
|
|
|
|
if [ -f "$JAR_PATH" ]; then
|
|
echo "gson-${VERSION}.jar already exists"
|
|
else
|
|
echo "gson-${VERSION}.jar herunter"
|
|
curl -L "$URL" -o "$JAR_PATH"
|
|
echo "Download succesfull"
|
|
fi
|
|
|
|
echo "Installation done. You can now run build.sh"
|