StephenCleary / AsyncEx

A helper library for async/await.
MIT License
3.51k stars 358 forks source link

Coverage.ps1 fails on Ubuntu 18.04 #190

Closed manandre closed 4 years ago

manandre commented 5 years ago

Execution of Coverage.ps1 on Ubuntu 18.04 (with PowerShell installed) generates the following error:

PS /home/manu/dev/AsyncEx> ./Coverage.ps1
/bin/mkdir : invalid option -- 'F'
Type « /bin/mkdir --help » for more information.
Resolve-Path : Cannot find path '/home/manu/dev/AsyncEx/tools/' because it does not exist.
manandre commented 5 years ago

The Coverage.ps1 script calls mkdir -Force $relativePath mkdir is an alias for New-Item -ItemType Directory in PowerShell, but it also a command an Unix command and it does not support the -Force parameter. mkdir should be replaced by New-Item -ItemType Directory in order to avoid the name conflict.