Skip to content

Commit a299ec4

Browse files
committed
Follow-up cleanup to Issue #6, put a warning on run-tests if user tries to run 5.1
1 parent c57520c commit a299ec4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/run-tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# tests/run-tests.ps1
2+
if ($PSVersionTable.PSVersion.Major -lt 7) {
3+
Write-Error "Tests require PowerShell 7+."
4+
exit 1
5+
}
26
if ($IsWindows) {
37
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
48
}

0 commit comments

Comments
 (0)