I am deploying an angular application, and to copy dist files we use powershell script, which gives errors in ci pipeline (Azure DevOps, Linux build agent). This works fine locally on my windows machine.
The ci console output:
pwsh -NoProfile -File ./scripts/copy.ps1 -source ./build/en/* -destination ./build
copy.ps1: A positional parameter cannot be found that accepts argument ‘./build/en/GVS_Icons.eot’.
copy.ps1 looks like this
param(
[Parameter(Mandatory = $true)][string]$source,
[Parameter(Mandatory = $true)][string]$destination
)
Copy-Item -Path $source -Destination $destination -Force -Recurse
Why is it failing?