Skip to content

Instantly share code, notes, and snippets.

@pdehaye
Created July 12, 2013 15:47

Revisions

  1. pdehaye revised this gist Jul 12, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion cachebust.sh
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,4 @@ version=`cat VERSION_NUMBER`
    version=$((version+1))
    echo -n "$version" > VERSION_NUMBER
    sed -i '' "s/{{VERSION}}/$version/g" ../index.html
    echo -e " Done.\n\n"
    echo -e " Done.\n\n"
  2. @justinbelcher justinbelcher created this gist Jul 12, 2013.
    6 changes: 6 additions & 0 deletions cachebust.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    echo -en "* Incrementing Deployment:"
    version=`cat VERSION_NUMBER`
    version=$((version+1))
    echo -n "$version" > VERSION_NUMBER
    sed -i '' "s/{{VERSION}}/$version/g" ../index.html
    echo -e " Done.\n\n"