blob: 479d6be82c4aaf09c068d7eae6b1dbb065fe6643 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/env bash
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Don't resolve runtime, shared framework, or SDK from other locations to ensure build determinism
export DOTNET_MULTILEVEL_LOOKUP=0
# Disable first run since we want to control all package sources
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
echo "Running init-tools.sh"
source $working_tree_root/init-tools.sh
dotnet=$working_tree_root/.dotnet/dotnet
echo "Running: $dotnet $@"
$dotnet "$@"
if [ $? -ne 0 ]
then
echo "ERROR: An error occurred in $dotnet $@. Check logs under $working_tree_root."
exit 1
fi
echo "Command successfully completed."
exit 0
|