Updating install script to work from any directory.

This commit is contained in:
mike12345567 2022-06-21 20:01:50 +01:00
parent 5020bf5f0f
commit 2455ede4a4
1 changed files with 3 additions and 2 deletions

View File

@ -1,9 +1,10 @@
#!/bin/bash
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"
if [[ $TARGETARCH == arm* ]] ;
then
echo "Installing ARM Oracle instant client..."
arm64/install.sh
$SCRIPT_DIR/arm64/install.sh
else
echo "Installing x86-64 Oracle instant client..."
x86-64/install.sh
$SCRIPT_DIR/x86-64/install.sh
fi