From: Siraaj Khandkar Date: Fri, 25 Sep 2020 15:49:50 +0000 (-0400) Subject: Set DOTNET_ROOT dynamically X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=62be2552a44a9bdaaeaf2caae0014a2cb986b70f;p=khome.git Set DOTNET_ROOT dynamically --- diff --git a/home/lib/login_variables.sh b/home/lib/login_variables.sh index 2898644..0631cbe 100644 --- a/home/lib/login_variables.sh +++ b/home/lib/login_variables.sh @@ -14,7 +14,10 @@ export NQDIR="$HOME/var/run/nq" mkdir -p "$NQDIR" # .Net Core -export DOTNET_ROOT=$HOME/.dotnet +DOTNET_ROOT_path=$(which dotnet) +DOTNET_ROOT_realpath=$(realpath "$DOTNET_ROOT_path") +DOTNET_ROOT_dirname=$(dirname "$DOTNET_ROOT_realpath") +export DOTNET_ROOT="$DOTNET_ROOT_dirname" export PATH=$PATH:$HOME/.dotnet # Rust / cargo