Skip to content

Commit

Permalink
nerf the serverconfig manip by checking to make sure it exists. fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Apr 7, 2011
1 parent 8185bc3 commit e3007f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/build.xml
Expand Up @@ -670,7 +670,12 @@

<target name="-serverconfig" description="(PRIVATE) Upgrades expires headers">
<echo message="Upgrading expires header timeouts for js/css to 1yr..."/>
<replace file="./${dir.publish}/${file.serverconfig}" token="access plus 2 months" value="access plus 1 year"/>
<if>
<available file="./${dir.publish}/${file.serverconfig}"/>
<then>
<replace file="./${dir.publish}/${file.serverconfig}" token="access plus 2 months" value="access plus 1 year"/>
</then>
</if>
</target>


Expand Down

0 comments on commit e3007f0

Please sign in to comment.