diff --git a/docs/graphics-protocol.rst b/docs/graphics-protocol.rst index f94fe5972..29cc27b4b 100644 --- a/docs/graphics-protocol.rst +++ b/docs/graphics-protocol.rst @@ -183,9 +183,9 @@ features of the graphics protocol: #!/bin/sh transmit_png() { - if command base64 --help 2>&1 | grep -q -- '--wrap='; then # Linux (GNU coreutils) + if command base64 --help 2>&1 | grep -q -- '-w,'; then # Linux (GNU coreutils) base64_flag="-w" - elif command base64 --help 2>&1 | grep -q -- '--break '; then # macOS/BSD + elif command base64 --help 2>&1 | grep -q -- '-b,'; then # macOS/BSD base64_flag="-b" else echo "Unknown base64 command: cannot set line width" >&2