mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
21 lines
532 B
Bash
Executable File
21 lines
532 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
LOCATION=${1:-".instant"}
|
|
mkdir -p $LOCATION
|
|
|
|
if [ -d "$LOCATION/instantclient_21_17" ]
|
|
then
|
|
echo "Libs exist, skipping"
|
|
else
|
|
wget -q -O cli.zip \
|
|
https://download.oracle.com/otn_software/linux/instantclient/2117000/instantclient-basic-linux.x64-21.17.0.0.0dbru.zip
|
|
# Newer versions require
|
|
# wget -q -O cli.zip \
|
|
# https://download.oracle.com/otn_software/linux/instantclient/23c/instantclient-basic-linux.x64-23.3.0.0.0.zip
|
|
rm -rf $LOCATION/*
|
|
unzip cli.zip -d $LOCATION
|
|
fi
|
|
|