2024-06-09 02:15:09 +00:00
|
|
|
#!/bin/sh
|
2024-06-09 02:48:43 +00:00
|
|
|
pwsh="$(command -v pwsh)"
|
|
|
|
if [ -z "$pwsh" ]; then pwsh="$(command -v dotnet) pwsh"; fi
|
|
|
|
if ! ("$pwsh" -v >/dev/null 2>/dev/null); then exit 0; fi
|
2024-06-09 02:31:07 +00:00
|
|
|
kind="$(basename "$0")"
|
2024-06-21 11:52:13 +00:00
|
|
|
"$pwsh" "./Dist/git_hooks/$kind.ps1" "$@" || exit $?
|
|
|
|
if [ -e "./Dist/git_hooks/$kind.local.ps1" ]; then "$pwsh" "./Dist/git_hooks/$kind.local.ps1" "$@" || exit $?; fi
|