Skip to content

Commit 2bc6ee1

Browse files
committed
build_docs_to_publish now respects --verbose too.
1 parent afd317b commit 2bc6ee1

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

doc/build_docs_to_publish

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,27 @@ if [ ! -f doc-builder/build_docs_to_publish ]; then
66
"${script_dir}"/../bin/git-fleximod update doc-builder
77
fi
88

9+
# Check if --verbose or -V was passed
10+
verbose=false
11+
for arg in "$@"; do
12+
case "$arg" in
13+
--verbose|-V) verbose=true; break ;;
14+
esac
15+
done
16+
917
cd "${script_dir}"
1018

11-
echo "Running: make fetch-images"
12-
make fetch-images
19+
if $verbose; then
20+
echo "Running: make fetch-images"
21+
make fetch-images
22+
else
23+
make fetch-images > /dev/null 2>&1
24+
fi
1325

14-
echo "Running: ./doc-builder/build_docs_to_publish $@"
15-
pwd
26+
if $verbose; then
27+
echo "Running: ./doc-builder/build_docs_to_publish $@"
28+
pwd
29+
fi
1630
./doc-builder/build_docs_to_publish "$@"
1731

18-
exit 0
32+
exit 0

0 commit comments

Comments
 (0)