Skip to content

Commit

Permalink
work with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
prog-supdex committed Mar 12, 2024
1 parent 9a36234 commit 9cbdb89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testdata/skip_run.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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!'

0 comments on commit 9cbdb89

Please sign in to comment.