diff options
Diffstat (limited to 'dotnet.sh')
-rw-r--r--[-rwxr-xr-x] | dotnet.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/dotnet.sh b/dotnet.sh index 8efc2b6c762f..fcc0bfd11dd4 100755..100644 --- a/dotnet.sh +++ b/dotnet.sh @@ -1,6 +1,12 @@ -#!/bin/sh +# Set location for AppHost lookup +[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet -export DOTNET_ROOT=/opt/dotnet -exec /opt/dotnet/dotnet $@ +# Add dotnet tools directory to PATH +DOTNET_TOOLS_PATH="$HOME/.dotnet/tools" +case "$PATH" in + *"$DOTNET_TOOLS_PATH"* ) true ;; + * ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;; +esac -# vim: ts=2 sw=2 et: +# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp' +[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract" |