mirror of
https://origin.cursor.com/mrdevmx/panels.git
synced 2026-10-09 13:23:17 +00:00
22 lines
670 B
Bash
Executable file
22 lines
670 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
TOOLS="$ROOT/db/tools"
|
|
mkdir -p "$TOOLS"
|
|
cd "$TOOLS"
|
|
|
|
if [[ ! -x "$TOOLS/liquibase/liquibase" ]]; then
|
|
echo "Downloading Liquibase 4.29.2..."
|
|
curl -fsSL -o liquibase.zip "https://github.com/liquibase/liquibase/releases/download/v4.29.2/liquibase-4.29.2.zip"
|
|
rm -rf liquibase
|
|
unzip -q -o liquibase.zip -d liquibase
|
|
rm -f liquibase.zip
|
|
fi
|
|
|
|
if [[ ! -f "$TOOLS/sqlite-jdbc.jar" ]]; then
|
|
echo "Downloading sqlite-jdbc..."
|
|
curl -fsSL -o sqlite-jdbc.jar \
|
|
"https://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.46.1.3/sqlite-jdbc-3.46.1.3.jar"
|
|
fi
|
|
|
|
echo "Liquibase tools ready."
|