Skip to content
Snippets Groups Projects
Commit cf22d43f authored by ezsh's avatar ezsh
Browse files

Gulp: do not try to unlink non-existent file

parent 348b2ca2
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,11 @@ function injectGitCommit(cb) {
}
function cleanupGit(cb) {
fs.unlink(cfg.gitVersionFile, cb);
if (fs.existsSync(cfg.gitVersionFile)) {
fs.unlink(cfg.gitVersionFile, cb);
} else {
cb();
}
}
function compileStory() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment