Skip to content

Commit

Permalink
--amend
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeNaccarato committed Sep 17, 2024
1 parent 5663958 commit a8843d6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/Sync-Template.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Param(
begin {
. scripts/Initialize-Shell.ps1
$Template = 'submodules/template'
$Copier = '[email protected]'
$TemplateExists = $Template | Test-Path
$Template = $TemplateExists ? $Template : 'origin/main'
function Get-Ref {
Expand All @@ -37,9 +38,9 @@ process {
elseif (!$TemplateExists -and $Stay) { return }
$Ref = Get-Ref $Ref
if ($Recopy) {
if ($Prompt) { return copier recopy --overwrite --vcs-ref=$Ref }
return copier recopy --overwrite --defaults --vcs-ref=$Ref
if ($Prompt) { return uvx $Copier recopy --overwrite --vcs-ref=$Ref }
return uvx $Copier recopy --overwrite --defaults --vcs-ref=$Ref
}
if ($Prompt) { return copier update --vcs-ref=$Ref }
return copier update --defaults --vcs-ref=$Ref
if ($Prompt) { return uvx $Copier update --vcs-ref=$Ref }
return uvx $Copier update --defaults --vcs-ref=$Ref
}

0 comments on commit a8843d6

Please sign in to comment.