Skip to content

Commit 6ed86bb

Browse files
author
root
committed
fix(autoupdate): only write site sha files when site dir exists
1 parent 661d2af commit 6ed86bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/scripts/autoupdate-scripts-sha.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ for base in "${changed[@]}"; do
3535
fi
3636
sha=$(sha256sum "$docf" | awk '{print $1}')
3737
echo "$sha $docf" > "$DOCS_DIR/$base.sha256"
38-
echo "$sha $docf" > "$sitef.sha256"
38+
if [[ -d "$SITE_DIR" ]]; then
39+
echo "$sha $docf" > "$sitef.sha256"
40+
fi
3941
modified=1
4042
echo "Updated sha for $base -> $sha"
4143
# Replace line in scripts.sha256

0 commit comments

Comments
 (0)