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

22 lines
604 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
INSTALL_TEMP_HOME=/tmp/dotnet-installer
2015-12-16 04:35:21 +00:00
# A temporary fix for the permissions issue(s)
2016-03-28 19:36:34 +00:00
chmod -R 755 $INSTALL_DESTINATION
first_run() {
$INSTALL_DESTINATION/dotnet exec $INSTALL_DESTINATION/sdk/%SDK_VERSION%/dotnet.dll internal-reportinstallsuccess "$1" > /dev/null 2>&1 || true
}
[ -d $INSTALL_TEMP_HOME ] || mkdir $INSTALL_TEMP_HOME
HOME=$INSTALL_TEMP_HOME first_run
2015-10-23 18:10:47 +00:00
exit 0