2015-10-23 11:10:47 -07:00
|
|
|
#!/bin/sh
|
2015-11-16 11:21:57 -08:00
|
|
|
#
|
|
|
|
# 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 11:10:47 -07:00
|
|
|
|
2015-12-15 20:35:21 -08:00
|
|
|
PACKAGE=$1
|
|
|
|
INSTALL_DESTINATION=$2
|
|
|
|
|
|
|
|
|
2015-12-15 14:08:00 -08:00
|
|
|
# A temporary fix for the permissions issue(s)
|
2016-03-28 12:36:34 -07:00
|
|
|
chmod -R 755 $INSTALL_DESTINATION
|
2015-11-23 11:55:42 -08:00
|
|
|
|
2017-05-03 10:24:23 -07:00
|
|
|
# Run 'dotnet new' as user to trigger the first time experience to initialize the cache
|
|
|
|
INSTALLER_USER=$(stat -f '%Su' $HOME)
|
|
|
|
su - $INSTALLER_USER -c "$INSTALL_DESTINATION/dotnet new > /dev/null 2>&1 || true"
|
2017-04-24 13:47:13 -07:00
|
|
|
|
2015-10-23 11:10:47 -07:00
|
|
|
exit 0
|