From 8e6351e88c92dda7193f6003a573e66f2644965f Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sun, 9 Jun 2024 22:20:43 +1000 Subject: [PATCH] Add some prints to Git hook installation script for GitHub Actions --- Dist/install_git_hooks.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dist/install_git_hooks.ps1 b/Dist/install_git_hooks.ps1 index bfa257397a..f0c3776c49 100755 --- a/Dist/install_git_hooks.ps1 +++ b/Dist/install_git_hooks.ps1 @@ -1,7 +1,9 @@ #!/usr/bin/env pwsh +$PSCommandFilename = Split-Path $PSCommandPath -Leaf +echo "[$PSCommandFilename] hello world" $targetDir = "$PSScriptRoot/../.git/hooks" if (Test-Path $targetDir -PathType Container) { # is Git repo - $PSCommandFilename = Split-Path $PSCommandPath -Leaf + echo "[$PSCommandFilename] looks like a Git repo" foreach ($f in Get-ChildItem "$PSScriptRoot/git_hooks") { $target = Join-Path $targetDir (Split-Path $f -LeafBase) if (!(Test-Path $target -PathType Leaf)) { # target file doesn't exist