Skip to content

Commit cbf279e

Browse files
committed
Move || true to where it doesn't incorrectly trigger a CI error
1 parent a7ec00d commit cbf279e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build/wiki-command-replacer.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ execute_command() {
3838

3939
EXECUTABLE_COMMAND=("${TOKENS[0]}" "${TOKENS[@]:1}")
4040
echo >&2 " INFO: running: " "${EXECUTABLE_COMMAND[@]}"
41-
"${EXECUTABLE_COMMAND[@]}"
41+
"${EXECUTABLE_COMMAND[@]}" </dev/null || true
4242
}
4343

4444
if [[ -z "${CI:-}" ]]; then
@@ -56,8 +56,7 @@ grep -lrF "${MARKER_START}" _wiki | while read -r file_to_process; do
5656
USER_COMMAND="${line##"${MARKER_START}"}"
5757
USER_COMMAND="${USER_COMMAND%%"${MARKER_END}"}"
5858

59-
# shellcheck disable=SC2310
60-
execute_command "${USER_COMMAND}" </dev/null || true
59+
execute_command "${USER_COMMAND}"
6160
else
6261
echo "${line}"
6362
fi

0 commit comments

Comments
 (0)