From a8843d6d9034818024c2940475c0ce856b200d1d Mon Sep 17 00:00:00 2001 From: blakeNaccarato Date: Tue, 17 Sep 2024 08:36:02 -0700 Subject: [PATCH] --amend --- scripts/Sync-Template.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/Sync-Template.ps1 b/scripts/Sync-Template.ps1 index 4a07a1a..52a6cc5 100644 --- a/scripts/Sync-Template.ps1 +++ b/scripts/Sync-Template.ps1 @@ -15,6 +15,7 @@ Param( begin { . scripts/Initialize-Shell.ps1 $Template = 'submodules/template' + $Copier = 'copier@9.2.0' $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 }