aboutsummaryrefslogtreecommitdiffstats
path: root/community/dotnet6-runtime/dotnet.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'community/dotnet6-runtime/dotnet.sh.in')
-rw-r--r--community/dotnet6-runtime/dotnet.sh.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/dotnet6-runtime/dotnet.sh.in b/community/dotnet6-runtime/dotnet.sh.in
new file mode 100644
index 00000000000..f85eb299fbe
--- /dev/null
+++ b/community/dotnet6-runtime/dotnet.sh.in
@@ -0,0 +1,12 @@
+# Set location for AppHost lookup
+[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=%LIBDIR%
+
+# 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"