Skip to content

Commit

Permalink
fix(dotnet): set paths for global tools (automotiveMastermind#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccaffery committed Jun 26, 2019
1 parent fe72dd5 commit d16a5f2
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/scripts/eval/set-dotnet-path
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
#!/usr/bin/env bash

if [ -e "/usr/local/share/dotnet" ]; then
export PATH="/usr/local/share/dotnet:$PATH"
if [ -d "/usr/local/share/dotnet" ]; then
export DOTNET_ROOT="/usr/local/share/dotnet"
export PATH="$DOTNET_ROOT:$PATH"
fi

if [ -e "$HOME/.dotnet/dotnet" ]; then
export PATH="$HOME/.dotnet:$PATH"
if [ -d "/usr/local/share/dotnet/tools" ]; then
export PATH="/usr/local/share/dotnet/tools:$PATH"
fi

if [ -d "$HOME/.dotnet" ]; then
export DOTNET_ROOT="$HOME/.dotnet"
export PATH="$DOTNET_ROOT:$PATH"
fi

if [ -d "$HOME/.dotnet/tools" ]; then
export PATH="$HOME/.dotnet/tools:$PATH"
fi

0 comments on commit d16a5f2

Please sign in to comment.