Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegoatly committed Jul 24, 2020
1 parent 4cb1fa8 commit f3b7317
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/publish-to-ghpages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
param (
[Parameter(Mandatory = $false)][string]$commitMessage = "",
[Parameter(Mandatory = $false)][bool]$dryRun = $false,
[Parameter(Mandatory = $false)][bool]$nopublish = $false
[Parameter(Mandatory = $false)][bool]$nopublish = $false,
[Parameter(Mandatory = $false)][bool]$force = $false
)

# abort if no changes to commit
if ($commitMessage.Length -gt 0) {
If (-Not (git status --porcelain)) {
If ($force -eq $false -and -Not (git status --porcelain)) {
Write-Host "No changes to commit. Aborting." -ForegroundColor Red
exit
}
Expand Down

0 comments on commit f3b7317

Please sign in to comment.