From 09e8c6a5a04957d7b4a8dec72a34ceebbc751228 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Tue, 6 Feb 2024 18:48:33 +0100 Subject: [PATCH] Set installation target to ~/bin when install.sh is run from DBR --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 898080e..e886632 100755 --- a/install.sh +++ b/install.sh @@ -27,6 +27,11 @@ MINGW64_NT) ;; esac +# Set target to ~/bin if DATABRICKS_RUNTIME_VERSION environment variable is set. +if [ -n "$DATABRICKS_RUNTIME_VERSION" ]; then + TARGET="$HOME/bin" +fi + # Include architecture in file name. ARCH="$(uname -m)" case "$ARCH" in