dotnet-installer/packaging/osx/clisdk/scripts/postinstall

19 lines
431 B
Text
Raw Normal View History

2015-10-23 18:10:47 +00:00
#!/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.
#
2015-10-23 18:10:47 +00:00
2015-12-16 04:35:21 +00:00
PACKAGE=$1
INSTALL_DESTINATION=$2
# A temporary fix for the permissions issue(s)
2015-12-16 04:35:21 +00:00
chmod -R 755 $INSTALL_DESTINATION
# Add the installation bin directory to the system-wide paths
echo $INSTALL_DESTINATION | tee -a /etc/paths.d/dotnet
2015-10-23 18:10:47 +00:00
exit 0