Skip to content

Commit 184d4b9

Browse files
committed
If the env vars are not set, don't fail to build
1 parent e2088de commit 184d4b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.remotetech2.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ if [ ! -f "$SRCDIR/Assembly-CSharp-firstpass.dll" ] \
66
|| [ ! -f "$SRCDIR/Assembly-CSharp.dll" ] \
77
|| [ ! -f "$SRCDIR/UnityEngine.dll" ];
88
then
9+
if [ "$TRAVIS_SECURE_ENV_VARS" = "false" ]; then
10+
# this should only happen for pull requests
11+
echo "Unable to build as the env vars have not been set. Can't decrypt the zip."
12+
exit 0; # can't decide if this should error
13+
fi
14+
915
if [[ ! -f dlls.zip ]]; then
1016
echo "Need to get dependency .dll's"
1117
wget -O dlls.zip "https://www.dropbox.com/s/kyv25p3qn166nzp/dlls.zip?dl=1"
@@ -27,3 +33,4 @@ then
2733
fi
2834

2935
cd src/RemoteTech2 && xbuild
36+

0 commit comments

Comments
 (0)