From d06602c127f4110cbc313ef547bddeaa9071b096 Mon Sep 17 00:00:00 2001 From: Tian Guoyun <88619302+BlitherBoom812@users.noreply.github.com> Date: Mon, 24 Apr 2023 21:46:23 +0800 Subject: [PATCH] Update run.sh --- dependency/shell/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dependency/shell/run.sh b/dependency/shell/run.sh index b84bfbc..3a38a95 100644 --- a/dependency/shell/run.sh +++ b/dependency/shell/run.sh @@ -9,7 +9,7 @@ do for i in {1..4} do j=$((i - 1)) - if [-f "./python/player$i.py"]; then + if [ -f "./python/player$i.py" ]; then nice -0 python3 ./python/player$i.py -I 127.0.0.1 -P 8888 -p $j elif [-f "./capi$i"]; then nice -0 ./capi$i -I 127.0.0.1 -P 8888 -p $j @@ -21,9 +21,9 @@ do for i in {5..5} do j=$((i - 1)) - if [-f "./python/player$i.py"]; then + if [ -f "./python/player$i.py" ]; then nice -0 python3 ./python/player$i.py -I 127.0.0.1 -P 8888 -p $j - elif [-f "./capi$i"]; then + elif [ -f "./capi$i" ]; then nice -0 ./capi$i -I 127.0.0.1 -P 8888 -p $j else echo "ERROR. $i is not found."