We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cbc0e8 commit 661d2afCopy full SHA for 661d2af
.github/scripts/verify-site-scripts.sh
@@ -63,10 +63,12 @@ for f in "${files_to_check[@]}"; do
63
EXIT_CODE=1
64
continue
65
fi
66
- # Compare content
67
- if ! cmp -s "$docf" "$sitef"; then
68
- echo "DIFF: $base differs between docs and site"
69
- EXIT_CODE=1
+ # Compare content (only if site copied files exist)
+ if [[ -d "$SITE_DIR" ]]; then
+ if ! cmp -s "$docf" "$sitef"; then
+ echo "DIFF: $base differs between docs and site"
70
+ EXIT_CODE=1
71
+ fi
72
73
# Verify sha file entry
74
sha_expected=$(sha256sum "$docf" | awk '{print $1}')
0 commit comments