Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BusyBox sed is unable to process ansi2html scripts #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/ansi2html.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,13 @@ processArg #defaults
for var in "$@"; do processArg $var; done
[ "$css_only" ] && [ "$body_only" ] && usage

sedver=$(sed --version 2>/dev/null)
if test "${sedver#This is not GNU sed}" != "$sedver"; then
echo "Error, BusyBox SED is not supported." >&2
exit 1
# Mac OSX's GNU sed is installed as gsed
# use e.g. homebrew 'gnu-sed' to get it
if ! sed --version >/dev/null 2>&1; then
elif [ -z "$sedver" ]; then
if gsed --version >/dev/null 2>&1; then
alias sed=gsed
else
Expand Down