diff options
author | Erich Eckner <git@eckner.net> | 2022-01-14 10:09:38 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-01-14 10:09:38 +0100 |
commit | a51b94c2828d76ac26428335600b5978385fa46a (patch) | |
tree | d1ef6fb1c3fb8fada5c464a6b93ec03f93057218 /dotnet-core-bin/dotnet.sh | |
parent | 09acdd7bbb7509d967f26bc3c342bc16037ef6b4 (diff) | |
download | archlinuxewe-a51b94c2828d76ac26428335600b5978385fa46a.tar.xz |
dotnet-core-bin neu
Diffstat (limited to 'dotnet-core-bin/dotnet.sh')
-rwxr-xr-x | dotnet-core-bin/dotnet.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dotnet-core-bin/dotnet.sh b/dotnet-core-bin/dotnet.sh new file mode 100755 index 000000000..fcc0bfd11 --- /dev/null +++ b/dotnet-core-bin/dotnet.sh @@ -0,0 +1,12 @@ +# Set location for AppHost lookup +[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/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 + +# 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" |