Skip to content

Commit d864d00

Browse files
committed
Broaden repository directory cleanup pattern to match repository prefix
- when pnpm i fails, is the non-suffixed 'repository' deleted as well?
1 parent 86003dc commit d864d00

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎install.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ foreach ($i in $indices) {
538538
if (-not $depsOk) {
539539
Write-Host " $msg_deps_retry" -ForegroundColor Yellow
540540
Set-Location $cwcDir
541-
Get-ChildItem -Path $cwcDir -Filter "repository-*" -Directory | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
541+
Get-ChildItem -Path $cwcDir -Filter "repository*" -Directory | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
542542

543543
$prevPreference = $ErrorActionPreference
544544
$ErrorActionPreference = "Continue"

‎install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ for i in "${indices[@]}"; do
558558
if ! run_step "$msg_step_deps" npx --yes pnpm install; then
559559
echo -e " \033[33m$msg_deps_retry\033[0m"
560560
cd "$CWC_DIR"
561-
rm -rf "$CWC_DIR"/repository-*
561+
rm -rf "$CWC_DIR"/repository*
562562
npx --yes pnpm store prune > /dev/null 2>&1 || true
563563
run_step "$msg_step_cloning" clone_repo
564564
cd "$REPO_DIR"

0 commit comments

Comments
 (0)