File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,16 +135,16 @@ svn cp "trunk" "tags/$VERSION"
135135# Fix screenshots getting force downloaded when clicking them
136136# https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/
137137if test -d " $SVN_DIR /assets" && test -n " $( find " $SVN_DIR /assets" -maxdepth 1 -name " *.png" -print -quit) " ; then
138- svn propset svn:mime-type " image/png" " $SVN_DIR /assets/*.png" || true
138+ svn propset svn:mime-type " image/png" " $SVN_DIR /assets/" * .png || true
139139fi
140140if test -d " $SVN_DIR /assets" && test -n " $( find " $SVN_DIR /assets" -maxdepth 1 -name " *.jpg" -print -quit) " ; then
141- svn propset svn:mime-type " image/jpeg" " $SVN_DIR /assets/*.jpg" || true
141+ svn propset svn:mime-type " image/jpeg" " $SVN_DIR /assets/" * .jpg || true
142142fi
143143if test -d " $SVN_DIR /assets" && test -n " $( find " $SVN_DIR /assets" -maxdepth 1 -name " *.gif" -print -quit) " ; then
144- svn propset svn:mime-type " image/gif" " $SVN_DIR /assets/*.gif" || true
144+ svn propset svn:mime-type " image/gif" " $SVN_DIR /assets/" * .gif || true
145145fi
146146if test -d " $SVN_DIR /assets" && test -n " $( find " $SVN_DIR /assets" -maxdepth 1 -name " *.svg" -print -quit) " ; then
147- svn propset svn:mime-type " image/svg+xml" " $SVN_DIR /assets/*.svg" || true
147+ svn propset svn:mime-type " image/svg+xml" " $SVN_DIR /assets/" * .svg || true
148148fi
149149
150150# Resolves => SVN commit failed: Directory out of date
You can’t perform that action at this time.
0 commit comments