From bdd9d86287d3ee1569b334f00c42ed35f869cab9 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 18 Oct 2018 19:26:25 -0400 Subject: [PATCH] Fix PostCompile.sh (#40976) * Fix PostCompile.sh * shell is hard * How am I this bad at shell --- tools/tgs4_scripts/PostCompile.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/tgs4_scripts/PostCompile.sh b/tools/tgs4_scripts/PostCompile.sh index 52c4fe03cc2..a7138d2ec47 100755 --- a/tools/tgs4_scripts/PostCompile.sh +++ b/tools/tgs4_scripts/PostCompile.sh @@ -3,7 +3,11 @@ set -e #load dep exports -. "$1/dependencies.sh" +#need to switch to game dir for Dockerfile weirdness +original_dir=$PWD +cd $1 +. dependencies.sh +cd $original_dir #find out what we have (+e is important for this) set +e