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/md.source.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/md.source.sh') diff --git a/packages/md.source.sh b/packages/md.source.sh index 2f85b3c2..957b9cf3 100644 --- a/packages/md.source.sh +++ b/packages/md.source.sh @@ -15,7 +15,7 @@ md::make_link () { local link="$1"; shift local descr="$1"; shift - grep -F -q '://' <<< "$link" || link=${link/.gmi/.md} + $GREP -F -q '://' <<< "$link" || link=${link/.gmi/.md} test -z "$descr" && descr="$link" echo "[$descr]($link) " -- cgit v1.2.3