Skip to content
Snippets Groups Projects
Commit 0e0ed6ca authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'gulp-git-unlink' into 'pregmod-master'

Gulp: do not try to unlink non-existent file

See merge request pregmodfan/fc-pregmod!8124
parents 348b2ca2 cf22d43f
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