Skip to content

Commit 4d68aba

Browse files
aireillyopenshift-cherrypick-robot
authored andcommitted
tweak script
1 parent 9cc74df commit 4d68aba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/prow-smoke-test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
#% Validates openshift-docs AsciiDoc source files using the same tools that run in the Prow CI
1111
#%
1212
#%OPTIONS ⚙️
13-
#% -v, --validate Validate the AsciiDoc source
13+
#% -v, --validate $DISTRO Validate the AsciiDoc source. Use --validate to run with default options
1414
#% -l, --lint-topicmaps Lint topic-map YAML
1515
#% -p, --preview $DISTRO "$PRODUCT_NAME" $VERSION Use --preview to run with default options
1616
#% -h, --help Print this help
1717
#%
1818
#%EXAMPLES 🤔
1919
#% ./scripts/prow-smoke-test.sh --validate
20+
#% ./scripts/prow-smoke-test.sh --validate openshift-rosa
2021
#% ./scripts/prow-smoke-test.sh --lint-topicmaps
2122
#% ./scripts/prow-smoke-test.sh --preview
2223
#% ./scripts/prow-smoke-test.sh --preview openshift-rosa
@@ -86,10 +87,10 @@ elif [[ "$TEST" == "--preview" || "$TEST" == "-p" ]] && [[ -n "$DISTRO" ]]; then
8687
elif [[ "$TEST" == "--validate" || "$TEST" == "-v" ]]; then
8788
echo ""
8889
echo "🚧 Validating the docs..."
89-
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE sh -c 'scripts/check-asciidoctor-build.sh && python3 build_for_portal.py --distro '${DISTRO}' --product "'"${PRODUCT_NAME}"'" --version '${VERSION}' --no-upstream-fetch && python3 makeBuild.py'
90+
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE sh -c 'scripts/check-asciidoctor-build.sh && python3 build_for_portal.py --distro '${DISTRO}' --product "'"${PRODUCT_NAME}"'" --version '${VERSION}' --no-upstream-fetch && python3 makeBuild.py'
9091

9192
elif [[ "$TEST" == "--lint-topicmaps" || "$TEST" == "-l" ]]; then
9293
echo ""
9394
echo "🚧 Linting the topicmap YAML..."
94-
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE sh -c 'yamllint _topic_maps'
95+
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE sh -c 'yamllint _topic_maps'
9596
fi

0 commit comments

Comments
 (0)