From 5d3ff2b74d9624cb93a6f4d1ee4a7f0d0ca9d84a Mon Sep 17 00:00:00 2001 From: Ali Toosi Date: Sat, 16 Apr 2022 12:34:53 +1000 Subject: [PATCH] Fix public image --- public_image/get_bot_names.py | 1 + public_image/requirements.txt | 2 +- public_image/run_game.sh | 5 ++++- requirements.txt | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public_image/get_bot_names.py b/public_image/get_bot_names.py index 4b5a288..8c5f897 100644 --- a/public_image/get_bot_names.py +++ b/public_image/get_bot_names.py @@ -8,6 +8,7 @@ exit() dirs = [dir[:-1] if dir[-1] == '/' else dir for dir in dirs] +dirs = [dir.replace(' ', r'\ ') for dir in dirs] with open('command.sh', 'w') as f: args = ' '.join(dirs) f.write(f'codequest22 --no-visual {args}') \ No newline at end of file diff --git a/public_image/requirements.txt b/public_image/requirements.txt index 4ad5f17..42a7857 100644 --- a/public_image/requirements.txt +++ b/public_image/requirements.txt @@ -1 +1 @@ -oaisudoiajsdoiausd==0.0.6 \ No newline at end of file +oaisudoiajsdoiausd==0.0.8 \ No newline at end of file diff --git a/public_image/run_game.sh b/public_image/run_game.sh index ee7ab1b..a66175a 100644 --- a/public_image/run_game.sh +++ b/public_image/run_game.sh @@ -1,6 +1,9 @@ #!/bin/bash +set -u +set -e + python get_bot_names.py chmod +x command.sh ./command.sh -cp bots/replay.* ./ \ No newline at end of file +cp ./replay.* bots/ \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 4534083..f206469 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ requests -oaisudoiajsdoiausd==0.0.6 \ No newline at end of file +oaisudoiajsdoiausd==0.0.8 \ No newline at end of file