Skip to content

Commit 0e76d7f

Browse files
authored
Merge pull request #40 from nextgenthemes/patch-2
Fix screenshots getting force downloaded
2 parents 8624d15 + a394cfe commit 0e76d7f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ svn status | grep '^\!' | sed 's/! *//' | xargs -I% svn rm %@ > /dev/null
121121
echo "➤ Copying tag..."
122122
svn cp "trunk" "tags/$VERSION"
123123

124+
# Fix screenshots getting force downloaded when clicking them
125+
# https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/
126+
svn propset svn:mime-type image/png assets/*.png || true
127+
svn propset svn:mime-type image/jpeg assets/*.jpg || true
128+
124129
svn status
125130

126131
echo "➤ Committing files..."

0 commit comments

Comments
 (0)