summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh4
-rwxr-xr-xrun.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index cbb2c8e4a4..415736ab05 100755
--- a/build.sh
+++ b/build.sh
@@ -175,7 +175,7 @@ restore_optdata()
# Parse the optdata package versions out of msbuild so that we can pass them on to CMake
local DotNetCli="$__ProjectRoot/Tools/dotnetcli/dotnet"
if [ ! -f $DotNetCli ]; then
- "$__ProjectRoot/init-tools.sh"
+ source "$__ProjectRoot/init-tools.sh"
if [ $? != 0 ]; then
echo "Failed to restore buildtools."
exit 1
@@ -334,7 +334,7 @@ build_native()
echo "Failed to generate $message build project!"
exit 1
fi
-
+
# Build
if [ $__ConfigureOnly == 1 ]; then
echo "Finish configuration & skipping $message build."
diff --git a/run.sh b/run.sh
index bd6a68f2bb..2d037e91e5 100755
--- a/run.sh
+++ b/run.sh
@@ -3,7 +3,7 @@
working_tree_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Running init-tools.sh"
-$working_tree_root/init-tools.sh
+source $working_tree_root/init-tools.sh
toolRuntime=$working_tree_root/Tools
dotnet=$toolRuntime/dotnetcli/dotnet