Skip to content

Commit acf1e75

Browse files
authored
Merge pull request #6 from vincenzo/develop
Check if ASSETS_DIR actually exists before copying
2 parents a6cd730 + 8ea457f commit acf1e75

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ else
9292
fi
9393

9494
# Copy dotorg assets to /assets
95-
rsync -rc "$GITHUB_WORKSPACE/$ASSETS_DIR/" assets/ --delete
95+
if [[ -d "$GITHUB_WORKSPACE/$ASSETS_DIR/" ]]; then
96+
rsync -rc "$GITHUB_WORKSPACE/$ASSETS_DIR/" assets/ --delete
97+
else
98+
echo "ℹ︎ No assets directory found; skipping asset copy"
99+
fi
96100

97101
# Add everything and commit to SVN
98102
# The force flag ensures we recurse into subdirectories even if they are already added

0 commit comments

Comments
 (0)