Skip to content

Commit

Permalink
Fix doctoc detection in verify-doctoc.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Büringer buringerst@vmware.com
  • Loading branch information
sbueringer committed Aug 3, 2023
1 parent 1567f68 commit a57d983
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hack/verify-doctoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi

command -v doctoc || echo "doctoc is not available on your system, skipping verification" && exit 0
if [[ -z "$(command -v doctoc)" ]]; then
echo "doctoc is not available on your system, skipping verification"
exit 0
fi

doctoc_files="README.md \
CONTRIBUTING.md \
Expand Down

0 comments on commit a57d983

Please sign in to comment.