From f428574ec4bf3d65954ed1b0c34ed86730f67647 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 27 Jul 2021 12:01:18 -0300 Subject: Remove extra \\ after | in line breaks Implements #task-1f103822-c865-254c-f6b6-4968f2fb473e. --- aux/workflow/assert-spelling.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aux/workflow/assert-spelling.sh') diff --git a/aux/workflow/assert-spelling.sh b/aux/workflow/assert-spelling.sh index 9418dc2..853fd5e 100755 --- a/aux/workflow/assert-spelling.sh +++ b/aux/workflow/assert-spelling.sh @@ -52,8 +52,8 @@ mkdir -p po/spelling eval "touch po/spelling/{international,$(echo "$LANGS" | tr ' ' ,)}.txt" get_lang() { - grep lang=.. "$1" | \ - head -n1 | \ + grep lang=.. "$1" | + head -n1 | awk ' match($0, /lang="(..)"/) { print substr($0, RSTART+length("lang=\""), 2) -- cgit v1.2.3