Skip to content

Commit

Permalink
fcosBuild: use mkdir -p to create /srv/fcos
Browse files Browse the repository at this point in the history
The caller might've created it already in the `skipInit: true` case.
  • Loading branch information
jlebon committed Mar 6, 2020
1 parent c7d0f3b commit f826efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/fcosBuild.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// overlays: []string -- list of directories to overlay
def call(params = [:]) {
stage("Build FCOS") {
shwrap("mkdir /srv/fcos")
shwrap("mkdir -p /srv/fcos")

if (!params['skipInit']) {
shwrap("cd /srv/fcos && cosa init https://github.com/coreos/fedora-coreos-config")
Expand Down

0 comments on commit f826efa

Please sign in to comment.