Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
69f97109
Commit
69f97109
authored
Dec 16, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/vmware: style
parent
2920239e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
builder/vmware/step_prepare_output_dir.go
builder/vmware/step_prepare_output_dir.go
+2
-3
No files found.
builder/vmware/step_prepare_output_dir.go
View file @
69f97109
...
@@ -30,7 +30,8 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio
...
@@ -30,7 +30,8 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio
ui
.
Say
(
"Deleting previous output directory..."
)
ui
.
Say
(
"Deleting previous output directory..."
)
dir
.
RemoveAll
()
dir
.
RemoveAll
()
}
else
{
}
else
{
state
.
Put
(
"error"
,
fmt
.
Errorf
(
"Output directory '%s' already exists."
,
config
.
OutputDir
))
state
.
Put
(
"error"
,
fmt
.
Errorf
(
"Output directory '%s' already exists."
,
config
.
OutputDir
))
return
multistep
.
ActionHalt
return
multistep
.
ActionHalt
}
}
}
}
...
@@ -41,9 +42,7 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio
...
@@ -41,9 +42,7 @@ func (s *stepPrepareOutputDir) Run(state multistep.StateBag) multistep.StepActio
}
}
s
.
dir
=
dir
s
.
dir
=
dir
state
.
Put
(
"dir"
,
dir
)
state
.
Put
(
"dir"
,
dir
)
return
multistep
.
ActionContinue
return
multistep
.
ActionContinue
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment