Skip to content

PowerShell (pwsh) unable to run hooks/stop-hook.sh on Windows #3

@doggy8088

Description

@doggy8088

When running hooks/stop-hook.sh with PowerShell (pwsh) on Windows, it will encounter a problem where it cannot be executed. This is usually because Windows cannot directly run UNIX Shell (.sh) scripts by default, unless the appropriate environment (such as Git Bash, WSL, or Cygwin) is installed. In addition, the file format and path syntax of .sh scripts are different from Windows, making PowerShell unable to recognize or correctly execute them.

Solutions include converting the script into a .ps1 file or executing the script through an installed Bash environment on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions