Skip to content

pwsh shell command with dot sourcing fails, error status not returned with -File #46

Answered by Vampire
briantist asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think this has anything to do with the quotes or my action.
The quotes should work just fine.

To verify that, I used upterm to connect via SSH to the running WSL in the GitHub action.
There I did echo 'Install-Module Pester -Force' >/mnt/d/a/_temp/5d790ec0-d85c-4a27-818a-bec86ccd3414.
Then pwsh.
And there . /mnt/d/a/_temp/5d790ec0-d85c-4a27-818a-bec86ccd3414.

This gives the same error.

Here your steps modified so that you could try yourself:

      - uses: Vampire/setup-wsl@v2.0.1
        with:
            distribution: Debian
            additional-packages: |
                gss-ntlmssp
                cifs-utils
                wget
                ca-certificates
              …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@briantist
Comment options

@Vampire
Comment options

@briantist
Comment options

Answer selected by briantist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants