Fix missing readarray command issue

resolve #1
This commit is contained in:
Daniel Berg 2021-07-22 18:05:42 +02:00
parent d7d74dcdeb
commit 4e76ae65a1
No known key found for this signature in database
GPG key ID: BFB01A06E7FB4F81

View file

@ -267,9 +267,8 @@ fuzzback() {
fi
if [ "$(echo "$match" | wc -l)" -gt "1" ]; then
readarray -t match <<< "$match"
query="${match[0]}"
rest="${match[1]}"
query="$(head -n 1 <<< "$match")"
rest="$(tail -n 1 <<< "$match")"
trimmed_line=$(echo "$rest" | sed 's/-\?[[:digit:]]\+:[[:space:]]\+[[:digit:]]\+://')
line_number=$(get_line_number "$rest")
direction=$(get_direction "$rest")