Create test.html if it doesn't exist.

This commit is contained in:
ccd0 2016-04-09 14:27:25 -07:00
parent 67d0b77b0a
commit 2ba7bb2246

View File

@ -415,7 +415,7 @@ module.exports = (grunt) ->
grunt.registerTask 'web', 'Move website changes to gh-pages.', ->
grunt.task.run 'markdown:web'
if grunt.file.read('test.html') isnt grunt.file.read('index.html')
if not grunt.file.exists('test.html') or grunt.file.read('test.html') isnt grunt.file.read('index.html')
grunt.task.run [
'copy:web'
'shell:commit-web'