From 995140a869c86929318d990232aff50feb9f11b2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 19 May 2021 10:06:02 +0100 Subject: some refactoring and also ensured that it works on macOS (given Bash 5 is installed) --- packages/html.source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/html.source.sh') diff --git a/packages/html.source.sh b/packages/html.source.sh index cc79e612..5a292f1c 100644 --- a/packages/html.source.sh +++ b/packages/html.source.sh @@ -46,7 +46,7 @@ html::make_link () { local link="$1"; shift local descr="$1"; shift - grep -F -q '://' <<< "$link" || link=${link/.gmi/.html} + $GREP -F -q '://' <<< "$link" || link=${link/.gmi/.html} test -z "$descr" && descr="$link" echo "$descr
" } -- cgit v1.2.3