summaryrefslogtreecommitdiff
path: root/packages/html.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2021-05-19 10:06:02 +0100
committerPaul Buetow <git@mx.buetow.org>2021-05-21 05:11:05 +0100
commit641a95de7bdd64963666cca6b96387ab5d9245e2 (patch)
tree633a546aff999286dd4c6073726ed6a037fed58b /packages/html.source.sh
parent05c68a1ed420243e484003df9bb281b79303c604 (diff)
some refactoring and also ensured that it works on macOS (given Bash 5 is installed)
Diffstat (limited to 'packages/html.source.sh')
-rw-r--r--packages/html.source.sh2
1 files changed, 1 insertions, 1 deletions
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 "<a class=\"textlink\" href=\"$link\">$descr</a><br />"
}