Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
grunt-monty-python
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
49c5b765
authored
2015-12-15 16:07:03 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix handling of first-time builds, when dist/deploy-old does not exist.
1 parent
50cb71ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
grunt-monty-python.js
grunt-monty-python.js
View file @
49c5b76
...
...
@@ -567,7 +567,7 @@ module.exports = function (grunt) {
fs
.
symlinkSync
(
target
,
'dist/next-current'
);
fs
.
renameSync
(
'dist/next-current'
,
'dist/current'
);
if
(
current
)
{
if
(
fs
.
stat
Sync
(
'dist/deploy-old'
))
{
if
(
fs
.
exists
Sync
(
'dist/deploy-old'
))
{
grunt
.
file
.
delete
(
'dist/deploy-old'
);
}
fs
.
renameSync
(
'dist/'
+
current
,
'dist/deploy-old'
);
...
...
Please
register
or
sign in
to post a comment