fix default INSTALL_DIR issue in dotnet-install.sh

This commit is contained in:
Krzysztof Wicher 2016-05-04 11:55:06 -07:00
parent 6eea734681
commit b18df1c51c
3 changed files with 5 additions and 5 deletions

View file

@ -358,7 +358,7 @@ get_user_share_path() {
if [ ! -z "${DOTNET_INSTALL_DIR:-}" ]; then
echo $DOTNET_INSTALL_DIR
else
echo "/usr/local/share/dotnet"
echo "$HOME/.dotnet"
fi
return 0
}
@ -619,7 +619,7 @@ calculate_vars
if [ "$dry_run" = true ]; then
say "Payload URL: $download_link"
say "Repeatable invocation: ./$(basename $0) --version $specific_version --channel $channel --install-dir $install_dir"
return 0
exit 0
fi
check_pre_reqs

View file

@ -358,7 +358,7 @@ get_user_share_path() {
if [ ! -z "${DOTNET_INSTALL_DIR:-}" ]; then
echo $DOTNET_INSTALL_DIR
else
echo "/usr/local/share/dotnet"
echo "$HOME/.dotnet"
fi
return 0
}
@ -619,7 +619,7 @@ calculate_vars
if [ "$dry_run" = true ]; then
say "Payload URL: $download_link"
say "Repeatable invocation: ./$(basename $0) --version $specific_version --channel $channel --install-dir $install_dir"
return 0
exit 0
fi
check_pre_reqs