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/md.source.sh | |
| parent | 0963ac49fd15beab68726ab60c39f10b7d5be086 (diff) | |
some refactoring and also ensured that it works on macOS (given Bash 5 is installed)
Diffstat (limited to 'packages/md.source.sh')
| -rw-r--r-- | packages/md.source.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/md.source.sh b/packages/md.source.sh index 2f85b3c2..957b9cf3 100644 --- a/packages/md.source.sh +++ b/packages/md.source.sh @@ -15,7 +15,7 @@ md::make_link () { local link="$1"; shift local descr="$1"; shift - grep -F -q '://' <<< "$link" || link=${link/.gmi/.md} + $GREP -F -q '://' <<< "$link" || link=${link/.gmi/.md} test -z "$descr" && descr="$link" echo "[$descr]($link) " |
