Skip to content

Commit

Permalink
batman: Remove '-u' flag when calling sed
Browse files Browse the repository at this point in the history
The `-u` flag is not available on busybox `sed`.
  • Loading branch information
eth-p committed Feb 12, 2024
1 parent a427f6e commit 82911b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/batman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fi

if [[ "${BATMAN_IS_BEING_MANPAGER:-}" = "yes" ]]; then
print_manpage() {
sed -u -e 's/\x1B\[[0-9;]*m//g; s/.\x08//g' \
sed -e 's/\x1B\[[0-9;]*m//g; s/.\x08//g' \
| "$EXECUTABLE_BAT" --language=man "${BAT_ARGS[@]}"
exit $?
}
Expand Down

0 comments on commit 82911b5

Please sign in to comment.