Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fetch-configlet.ps1: fix for newer PowerShell versions (#841)
Under some conditions, running the fetch-configlet PowerShell script could now produce an error like the below: $ pwsh ./fetch-configlet.ps1 Invoke-WebRequest: /mnt/c/Users/bugma/Source/Repos/3rdParty/euphoria/bin/fetch-configlet.ps1:29 Line | 29 | Invoke-WebRequest -Uri $downloadUrl -OutFile $outputFile @requestOpts | ~~~~~~~~~~~~ | Cannot validate argument on parameter 'Uri'. The argument is null or | empty. Provide an argument that is not null or empty, and then try | the command again. Fix that, and make the script more similar to the bash one. Changes: - Fix command chaining - Move $arch closer to place of use - Use name field to exactly match filename - Test if script is run from repo root - Add message for downloading - Replace broken expand-archive with ZipFile - Use explicit output filename - Output download info Closes: #839
- Loading branch information