diff --git a/recipes/justfile b/recipes/justfile index 094118eb..0cffab33 100644 --- a/recipes/justfile +++ b/recipes/justfile @@ -35,8 +35,8 @@ set dotenv-load [windows] @swap BACKUP CACHE: - if (Test-Path "{{BACKUP}}") { \ + if (Test-Path "{{BACKUP}}" -PathType leaf) { \ Write-Host "replacing {{CACHE}} with {{BACKUP}}"; \ - cp -Force "{{BACKUP}}' '{{CACHE}}"; \ + just copy '{{BACKUP}}' '{{CACHE}}'; \ Remove-Item -Force -Path "{{BACKUP}}"; \ } else { Write-Host "missing {{BACKUP}}"; }