Skip to content

add-path.ps1 uses pwd not script root #152

@ThomasNieto

Description

@ThomasNieto

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

Run the script while not in the same folder that the script is in and it will add the pwd not script root in the path.

PS C:\Test> C:\dsc\add-path.ps1
Added C:\Test to $env:PATH

Expected behavior

Added C:\dsc to $env:PATH

Actual behavior

Added C:\Test to $env:PATH

Error details

No response

Environment data

7.4-preview4

Version

3.0-alpha1

Visuals

No response

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