Revert "Add some prints to Git hook installation script for GitHub Actions"

This reverts commit 8e6351e88c.
This commit is contained in:
YoshiRulz 2024-06-09 22:20:58 +10:00
parent 8e6351e88c
commit 2b05071493
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 3 deletions

View File

@ -1,9 +1,7 @@
#!/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
echo "[$PSCommandFilename] looks like a Git repo"
$PSCommandFilename = Split-Path $PSCommandPath -Leaf
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