diff --git a/testdata/skip_run.txt b/testdata/skip_run.txt index 0db312bb..2c72e852 100644 --- a/testdata/skip_run.txt +++ b/testdata/skip_run.txt @@ -12,7 +12,7 @@ stdout 'Ha-ha!' env VAR=1 [unix] exec lefthook run skip-var [windows] exec lefthook run skip-var-windows - stdout 'Ha-ha!' +stdout 'Ha-ha!' -- lefthook.yml -- skip_output: @@ -43,7 +43,7 @@ skip-var: skip-var-windows: skip: - - run: if (-not $env:VAR) { exit 1 } else { exit 0 } + - run: powershell -Command "if (-not $env:VAR) { exit 1 } else { exit 0 }" commands: echo: run: echo 'Ha-ha!'