Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #60 from remyLemeunier/add-verification-when-not-d…
Browse files Browse the repository at this point in the history
…eployed

Add verification when not deployed
  • Loading branch information
remyLemeunier authored Aug 28, 2017
2 parents 518ce35 + ea0b99d commit fca700d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ func (d *Deploy) execute() {
}
}

if len(deployedVersions) == 0 {
needToDeploy = true
}

if needToDeploy == false {
fmt.Fprintf(d.Writer, "Version %q is already deployed.", sha1ToDeploy)
return
Expand Down

0 comments on commit fca700d

Please sign in to comment.