Commit f39a7568 authored by user472393's avatar user472393
Browse files

remove player from info routine draw script

parent 480599d1
#!/bin/bash
# print some ascii art
read -r t;
t=$1
read -r l;
read -r h;
t=${t^^};
......
debug
20
11
.----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .-----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------.
......
......@@ -693,10 +693,9 @@ info_routine () {
ascii_font=$PWD/ascii_font
db_dir=$PWD/elo_db
if test -e "$db_dir/$p2"; then
# put player into font file
sed -i "1s/.*/$p2/" "$ascii_font"
# render font
"$ascii_draw" < "$ascii_font" > "$info_dir/$p2.txt"
# draw the player using the font file
# output to the info dir
"$ascii_draw" "$p2" < "$ascii_font" > "$info_dir/$p2.txt"
# append elo_db
cat "$db_dir/$p2" >> "$info_dir/$p2.txt"
# 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