Skip to content

Commit

Permalink
README: Add a note re running commands in cmd/powershell using -c
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka authored and eine committed Jul 14, 2020
1 parent 44b293d commit 1f0dc54
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,24 @@ If option `release` is `false`, the default installation is used. Otherwise (by
- uses: msys2/setup-msys2@v1
```
Then, for multi-line scripts:
Then, for scripts:
```yaml
- shell: msys2 {0}
run: |
uname -a
```
Or, for single line commands:
It is also possible to execute specific commands from cmd/powershell scripts/snippets. In order to do so, `-c` is required:

```yaml
- run: msys2 -c 'uname -a'
- shell: powershell
run: msys2 -c 'uname -a'
```

```yaml
- shell: cmd
run: msys2 -c 'uname -a'
```

### Default shell
Expand Down

0 comments on commit 1f0dc54

Please sign in to comment.