diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-05-19 10:06:02 +0100 |
|---|---|---|
| committer | Paul Buetow <pbuetow@mimecast.com> | 2021-05-19 10:06:02 +0100 |
| commit | 995140a869c86929318d990232aff50feb9f11b2 (patch) | |
| tree | acbc1bd3de63caf2926f75bc39c993af295014d3 /packages/html.source.sh | |
| parent | 0963ac49fd15beab68726ab60c39f10b7d5be086 (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 />" } |
