Skip to content

Commit

Permalink
Fix cmd shell (#11)
Browse files Browse the repository at this point in the history
* Update index.js

* Regenerate dist/index.js

* Update test.yml

Co-authored-by: KnicKnic <[email protected]>
  • Loading branch information
KnicKnic and KnicKnic authored Mar 10, 2021
1 parent 09021b3 commit 4ba689e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
echo "Hi from linux"
echo "Hi from linux second line"
windows: echo "Hi from windows"
windowsShell: cmd
-
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let builtInShells = {
pwsh: 'pwsh -command "& \'{0}\'"',
python: 'python {0}',
sh: 'sh -e {0}',
cmd: '%ComSpec% /D /E:ON /V:OFF /S /C "CALL "{0}""',
cmd: 'cmd.exe /D /E:ON /V:OFF /S /C "CALL "{0}""',
powershell: 'powershell -command "& \'{0}\'"',
}

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let builtInShells = {
pwsh: 'pwsh -command "& \'{0}\'"',
python: 'python {0}',
sh: 'sh -e {0}',
cmd: '%ComSpec% /D /E:ON /V:OFF /S /C "CALL "{0}""',
cmd: 'cmd.exe /D /E:ON /V:OFF /S /C "CALL "{0}""',
powershell: 'powershell -command "& \'{0}\'"',
}

Expand Down

0 comments on commit 4ba689e

Please sign in to comment.