fix check docs stage in jenkins (#6156)
Ignore color information when checking consistency of options.md with the built binary.
This commit is contained in:
parent
0fa363e022
commit
e677d98119
|
@ -1,5 +1,5 @@
|
||||||
/* beacon_chain
|
/* beacon_chain
|
||||||
* Copyright (c) 2019-2023 Status Research & Development GmbH
|
* Copyright (c) 2019-2024 Status Research & Development GmbH
|
||||||
* Licensed and distributed under either of
|
* Licensed and distributed under either of
|
||||||
* * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
* * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
||||||
* * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
* * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
||||||
|
|
|
@ -12,6 +12,7 @@ DOC_FILE='docs/the_nimbus_book/src/options.md'
|
||||||
DOC_USAGE=$(sed -n '/Usage/,/^...$/ { /^...$/d; p; }' "${DOC_FILE}")
|
DOC_USAGE=$(sed -n '/Usage/,/^...$/ { /^...$/d; p; }' "${DOC_FILE}")
|
||||||
BIN_USAGE=$(
|
BIN_USAGE=$(
|
||||||
COLUMNS=200 build/nimbus_beacon_node --help | \
|
COLUMNS=200 build/nimbus_beacon_node --help | \
|
||||||
|
sed 's/\x1b\[[0-9;]*m//g' | \
|
||||||
sed -n '/Usage/,/Available sub-commands/ { /Available sub-commands/d; p; }' | \
|
sed -n '/Usage/,/Available sub-commands/ { /Available sub-commands/d; p; }' | \
|
||||||
sed 's/\\x1B\\[[0-9;]*[mG]//g' | \
|
sed 's/\\x1B\\[[0-9;]*[mG]//g' | \
|
||||||
sed 's/[[:space:]]*$//'
|
sed 's/[[:space:]]*$//'
|
||||||
|
|
Loading…
Reference in New Issue