From d7bb34e0c5fa01d9411213fd1a1363317d3ceb11 Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Sat, 20 Jun 2020 11:27:48 +0200 Subject: [PATCH] Add shellcheck ignore directive for which (default in shellcheck>=0.7.1) --- google-font-download | 1 + 1 file changed, 1 insertion(+) diff --git a/google-font-download b/google-font-download index 82edab2..8e54160 100755 --- a/google-font-download +++ b/google-font-download @@ -349,6 +349,7 @@ if [ "$(echo "test" | sed -E 's/([st]+)$/xx\1/' 2>/dev/null)" == "texxst" ]; the elif [ "$(echo "test" | sed -r 's/([st]+)$/xx\1/' 2>/dev/null)" == "texxst" ]; then ESED="sed -r" else + # shellcheck disable=SC2230 err_exit "$(which sed) seems to lack extended regex support with -E or -r" fi