fix match lookup for POSIX sed

This commit is contained in:
Jorge Morante 2018-02-27 21:25:44 +01:00
parent f4b144add3
commit 80d4cab555
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@ export pane_output_temp
function lookup_match() {
local input=$1
echo "$(cat $match_lookup_table | grep -i "^$input:" | sed "s/^$input://i" | head -n 1)"
input="$(echo "$input" | tr "A-Z" "a-z")"
echo "$(cat $match_lookup_table | grep -i "^$input:" | sed "s/^$input://" | head -n 1)"
}
function get_stdin() {