dotnet-installer/packaging/osx/sharedhost/scripts/postinstall
Sridhar Periyasamy e81166afce Add to $PATH in the .Net Core Host pkg
Earlier it was incorrectly done in .Net CLI pkg
2016-03-25 11:31:30 -07:00

16 lines
429 B
Bash
Executable file

#!/bin/sh
#
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
PACKAGE=$1
INSTALL_DESTINATION=$2
# A temporary fix for the permissions issue(s)
chmod 755 $INSTALL_DESTINATION/dotnet
# Add the installation directory to the system-wide paths
echo $INSTALL_DESTINATION | tee -a /etc/paths.d/dotnet
exit 0