diff options
| author | ozkanonur <work@onurozkan.dev> | 2023-05-03 20:32:39 +0300 |
|---|---|---|
| committer | ozkanonur <work@onurozkan.dev> | 2023-05-03 20:32:39 +0300 |
| commit | eea6202c248f0aa57a7f490f50a7bf21f322a40e (patch) | |
| tree | a8b5b370f1d79742caa6981cc2389ac1236ad726 /x.ps1 | |
| parent | 9d795a6e6e19d56b235d1dbd4f5941404cf5918c (diff) | |
| download | rust-eea6202c248f0aa57a7f490f50a7bf21f322a40e.tar.gz rust-eea6202c248f0aa57a7f490f50a7bf21f322a40e.zip | |
check bootstrap scripts syntax
Signed-off-by: ozkanonur <work@onurozkan.dev>
Diffstat (limited to 'x.ps1')
| -rwxr-xr-x | x.ps1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/x.ps1 b/x.ps1 index f324a4676c8..540fc6530e2 100755 --- a/x.ps1 +++ b/x.ps1 @@ -2,6 +2,11 @@ # See ./x for why these scripts exist. +$ErrorActionPreference = "Stop" + +# syntax check +Get-Command -syntax ${PSCommandPath} + $xpy = Join-Path $PSScriptRoot x.py # Start-Process for some reason splits arguments on spaces. (Isn't powershell supposed to be simpler than bash?) # Double-quote all the arguments so it doesn't do that. |
