summaryrefslogtreecommitdiff
path: root/packages/html.source.sh
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2021-05-20 18:16:51 +0100
committerPaul Buetow <git@mx.buetow.org>2021-05-21 05:11:05 +0100
commitbd1adc6f9e2b22b5ea887519c4cc73cc08e36328 (patch)
treeed4c36614bf7e515b2df48fa1f50d01f743be63a /packages/html.source.sh
parent5eba1760c0db9b01f7498a1efbfb4d969b6f3051 (diff)
fix macOS links
Diffstat (limited to 'packages/html.source.sh')
-rw-r--r--packages/html.source.sh3
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