Commit f39a7568 authored by user472393's avatar user472393
Browse files

remove player from info routine draw script

parent 480599d1
#!/bin/bash #!/bin/bash
# print some ascii art # print some ascii art
read -r t; t=$1
read -r l; read -r l;
read -r h; read -r h;
t=${t^^}; t=${t^^};
......
debug
20 20
11 11
.----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .-----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .-----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------.
......
...@@ -693,10 +693,9 @@ info_routine () { ...@@ -693,10 +693,9 @@ info_routine () {
ascii_font=$PWD/ascii_font ascii_font=$PWD/ascii_font
db_dir=$PWD/elo_db db_dir=$PWD/elo_db
if test -e "$db_dir/$p2"; then if test -e "$db_dir/$p2"; then
# put player into font file # draw the player using the font file
sed -i "1s/.*/$p2/" "$ascii_font" # output to the info dir
# render font "$ascii_draw" "$p2" < "$ascii_font" > "$info_dir/$p2.txt"
"$ascii_draw" < "$ascii_font" > "$info_dir/$p2.txt"
# append elo_db # append elo_db
cat "$db_dir/$p2" >> "$info_dir/$p2.txt" cat "$db_dir/$p2" >> "$info_dir/$p2.txt"
# info_http # info_http
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment