Browse Source

Update run.sh

tags/0.1.0
Tian Guoyun GitHub 2 years ago
parent
commit
d06602c127
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      dependency/shell/run.sh

+ 3
- 3
dependency/shell/run.sh View File

@@ -9,7 +9,7 @@ do
for i in {1..4} for i in {1..4}
do do
j=$((i - 1)) 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 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 nice -0 ./capi$i -I 127.0.0.1 -P 8888 -p $j
@@ -21,9 +21,9 @@ do
for i in {5..5} for i in {5..5}
do do
j=$((i - 1)) 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 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 nice -0 ./capi$i -I 127.0.0.1 -P 8888 -p $j
else else
echo "ERROR. $i is not found." echo "ERROR. $i is not found."


Loading…
Cancel
Save