Updating install script to work from any directory.

This commit is contained in:
mike12345567 2022-06-21 20:01:50 +01:00
parent b42e0c1c5e
commit e32de3b850
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