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