Scripts: modify regexps, because no slash anymore in game results.
This commit is contained in:
parent
f9b2b32e20
commit
e9bafd8838
2
game-add
2
game-add
@ -292,7 +292,7 @@ function game_update_info {
|
|||||||
echo "Updating file ${tour_info}..."
|
echo "Updating file ${tour_info}..."
|
||||||
local date=${game_date:8:2}.${game_date:5:2}.${game_date::4}
|
local date=${game_date:8:2}.${game_date:5:2}.${game_date::4}
|
||||||
sed -E -i.orig \
|
sed -E -i.orig \
|
||||||
"s|^${DATE_RE}( +${white} +- +${black}).*|${date}\1${sep}${result}|" \
|
"s/^${DATE_RE}( +${white} +- +${black}).*/${date}\1${sep}${result}/" \
|
||||||
$tour_info
|
$tour_info
|
||||||
rm ${tour_info}.orig
|
rm ${tour_info}.orig
|
||||||
|
|
||||||
|
2
schedule
2
schedule
@ -223,7 +223,7 @@ function info_output_term {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Highlight result
|
# Highlight result
|
||||||
line=$(sed -E "s~ ${res_re}( |$)~ $(tput setaf 6)\1-\2$(tput sgr0)\3~" <<< "$line")
|
line=$(sed -E "s/ ${res_re}( |$)/ $(tput setaf 6)\1-\2$(tput sgr0)\3/" <<< "$line")
|
||||||
|
|
||||||
echo "$line"
|
echo "$line"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user