Skip to content

[Bug] while installing scoop 'non empty directory' stops install #6524

@tps800

Description

@tps800

Bug Report

Current Behavior

After

PS[7.5.3] Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
PS[7.5.3] irm get.scoop.sh -outfile 'install.ps1'
PS[7.5.3] .\install.ps1 -ScoopDir 'C:\prgs\scoop' -ScopGlobalDir 'C:\prgs\scoop-global' -Proxy 'http://127.0.0.1:3128'
Initializing...
Downloading...
WARNING: The term 'C:\Program Files\Git\bin\git.exe' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Extracting...
Remove-Item: C:\Users\<user>\install.ps1:644
Line |
 644 |          Remove-Item $scoopUnzipTempDir -Recurse -Force
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Das Verzeichnis ist nicht leer. : 'C:\prgs\scoop\apps\scoop\current\_tmp\Scoop-master\.github'.

Afterwards scoop is not installed in a way it can be used.

Expected Behavior

After

 .\install.ps1 -ScoopDir 'C:\prgs\scoop' -ScopGlobalDir 'C:\prgs\scoop-global' -Proxy 'http://127.0.0.1:3128'

scoop being installed and useable.

Additional context/output

PS[7.5.3] .\install.ps1 -ScoopDir 'C:\prgs\scoop' -ScopGlobalDir 'C:\prgs\scoop-global' -Proxy 'http://127.0.0.1:3128'
Initializing...
Downloading...
WARNING: The term 'C:\Program Files\Git\bin\git.exe' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Extracting...
Remove-Item: C:\Users\<user>\install.ps1:644
Line |
 644 |          Remove-Item $scoopUnzipTempDir -Recurse -Force
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Das Verzeichnis ist nicht leer. : 'C:\prgs\scoop\apps\scoop\current\_tmp\Scoop-master\.github'.

System details

Windows version: 10, 11

OS architecture: 64bit

PowerShell version: 7.5.3, 5.1.17763.316

Additional software: Git (MSys64), in path:

Git

> where git.exe
C:\prgs\msys\usr\bin\git.exe
C:\prgs\git\cmd\git.exe
PS[7.5.3] git --version
git version 2.51.0

Scoop Configuration

Does not exist -- install was not finished without error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions