Skip to content

Commit afd317b

Browse files
samsrabinclaude
andcommitted
Suppress bash wrapper echo lines unless --verbose is passed
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 5e76c25 commit afd317b

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

doc/build_docs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,24 @@ if [ ! -f doc-builder/build_docs ]; then
66
${script_dir}/../bin/git-fleximod update doc-builder
77
fi
88

9-
echo "Running: make fetch-images"
10-
make fetch-images
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
1116

12-
echo "Running: ./doc-builder/build_docs $@"
17+
if $verbose; then
18+
echo "Running: make fetch-images"
19+
make fetch-images
20+
else
21+
make fetch-images > /dev/null 2>&1
22+
fi
23+
24+
if $verbose; then
25+
echo "Running: ./doc-builder/build_docs $@"
26+
fi
1327
./doc-builder/build_docs "$@"
1428

15-
exit 0
29+
exit 0

0 commit comments

Comments
 (0)