diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-05-19 10:06:02 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-05-21 05:11:05 +0100 |
| commit | 641a95de7bdd64963666cca6b96387ab5d9245e2 (patch) | |
| tree | 633a546aff999286dd4c6073726ed6a037fed58b /packages/html.source.sh | |
| parent | 05c68a1ed420243e484003df9bb281b79303c604 (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.sh | 2 |
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 />" } |
