summaryrefslogtreecommitdiff
path: root/dotnet.sh.in
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 15:19:00 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 15:19:00 +0000
commit50bb7028c9220efa47e111cf68805776fab3a37d (patch)
tree087ef0c1ee65866c9e29834682241283bd88d566 /dotnet.sh.in
parent4d9985da82f0d83488f4247dde2853de60c8db87 (diff)
automatic import of dotnet7.0openeuler24.03_LTS
Diffstat (limited to 'dotnet.sh.in')
-rw-r--r--dotnet.sh.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/dotnet.sh.in b/dotnet.sh.in
new file mode 100644
index 0000000..65b92a0
--- /dev/null
+++ b/dotnet.sh.in
@@ -0,0 +1,14 @@
+
+# Set location for AppHost lookup
+[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=@LIBDIR@/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"