-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5663958
commit a8843d6
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 { | ||
|
@@ -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 | ||
} |