markdown.bash
markdown.bash copied to clipboard
Passing string as input raises "sed: unsupported command e" on Alpine
I tried something like this on a GitLab build based on Alpine Linux:
BODY_SOURCE=$(echo "$BODY_SOURCE" | sh inc/markdown.bash/markdown.sh /dev/stdin)
It works on a Void Linux machine just fine, but not on Alpine. It gave me a:
sed: unsupported command e
It seems to be doing this on this line of markdown.sh:
while grep '^[\*\+\-] ' "$temp_file" >/dev/null
Had the same problem. The solution is to install a full sed with apk add sed.