summaryrefslogtreecommitdiff
path: root/run.sh
blob: 2612c86f33c9f3c85101061b19a583310a37d672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash

working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

echo "Running init-tools.sh"
$working_tree_root/init-tools.sh

# Always copy over the Tools-Override
cp $working_tree_root/Tools-Override/* $working_tree_root/Tools > /dev/null

toolRuntime=$working_tree_root/Tools
dotnet=$toolRuntime/dotnetcli/dotnet

echo "Running: $dotnet $toolRuntime/run.exe $working_tree_root/config.json $*"
$dotnet $toolRuntime/run.exe $working_tree_root/config.json $*
if [ $? -ne 0 ]
then
    echo "ERROR: An error occured in $dotnet $toolRuntime/run $#. Check $# logs under $working_tree_root."
    exit 1
fi

echo "Command successfully completed."
exit 0