We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f992f5 commit 39311a0Copy full SHA for 39311a0
scripts/download-proxy.sh
@@ -33,6 +33,22 @@ tar -xvf soccer-simulation-proxy.tar.gz
33
34
mv soccer-simulation-proxy/* .
35
36
+echo "Inserting code to start.sh..."
37
+
38
+sed -i '/rpc_type="thrift"/a\
39
+if [ -f ".env" ]; then\n\
40
+ source .env\n\
41
+ if [ -n "$RPC_TYPE" ]; then\n\
42
+ rpc_type="$RPC_TYPE"\n\
43
+ fi\n\
44
+fi' start.sh
45
46
47
+if [ ! -f ".env" ]; then
48
+ echo "Creating .env file with default content..."
49
+ echo "RPC_TYPE=grpc" > .env
50
+fi
51
52
rm -rf soccer-simulation-proxy
53
54
rm soccer-simulation-proxy.tar.gz
0 commit comments