diff options
| author | Paul Buetow <pbuetow@mimecast.com> | 2021-05-20 18:16:51 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-05-21 05:11:05 +0100 |
| commit | bd1adc6f9e2b22b5ea887519c4cc73cc08e36328 (patch) | |
| tree | ed4c36614bf7e515b2df48fa1f50d01f743be63a /packages/html.source.sh | |
| parent | 5eba1760c0db9b01f7498a1efbfb4d969b6f3051 (diff) | |
fix macOS links
Diffstat (limited to 'packages/html.source.sh')
| -rw-r--r-- | packages/html.source.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/html.source.sh b/packages/html.source.sh index efb9bf6b..6049c2f9 100644 --- a/packages/html.source.sh +++ b/packages/html.source.sh @@ -49,9 +49,10 @@ html::make_link () { local link="$1"; shift local descr="$1"; shift - if $GREP -F -q '://' <<< "$link"; then + if ! $GREP -F -q '://' <<< "$link"; then link=${link/.gmi/.html} fi + if [[ -z "$descr" ]]; then descr="$link" fi |
