Skip to content

[Bug] Console output prompt lacks newline when running scripts in install.ps1 #6371

@Lutra-Fs

Description

@Lutra-Fs

Bug Report

Discussed in #6347

Current Behavior

When running a script in Scoop/lib/install.ps1, the line

Write-Host "Running $HookType script..." -NoNewline

outputs a prompt without a newline, which can cause the next command output to appear directly after the prompt, resulting in unclear or hard-to-read console output. For example:

Running pre_install script...OK

Expected Behavior

The prompt should appear clearly separated from subsequent output. Typically, this is achieved by omitting the -NoNewline parameter, so the user can easily distinguish the prompt from the command result.

Expected output example:

Running pre_install script...
OK

Additional context/output

Possible Solution

Consider removing the -NoNewline flag from Write-Host at this location, or adding a newline character after the message. This will make the output easier to read and more consistent with typical command-line UX.

System details

Windows version: [Please fill in, e.g. 10, 11]
OS architecture: [Please fill in, e.g. 64bit, arm64]
PowerShell version: [Output of "$($PSVersionTable.PSVersion)"]
Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

// Paste your configuration here
N/A

Summary:
This issue is about improving console output clarity by adjusting a Write-Host usage in install.ps1 (line 734). See the discussion for more context: #6347

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