From 9703fceb30b9fae193d2cd5c277dd0cb620a832a Mon Sep 17 00:00:00 2001 From: Mike Madeja Date: Sun, 15 Jun 2025 22:46:08 -0500 Subject: [PATCH 1/3] debugging --- PiHoleShell/PiHoleShell.psd1 | Bin 2136 -> 1704 bytes PiHoleShell/PiHoleShell.psm1 | 8 ++++++-- PiHoleShell/Public/Metrics.ps1 | 4 +--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/PiHoleShell/PiHoleShell.psd1 b/PiHoleShell/PiHoleShell.psd1 index 260ed87d04cef199e8e898c327a74f8afe878fa0..796256cf0d1c809e2f80ad9586504c0dd71ca317 100644 GIT binary patch delta 18 Zcmca1u!4637c;9mgBFAO=KU-)nE^451nK|) delta 453 zcma)&I|{-;6h#lD6GWF_r-JsDegd%)NpJz8F^ZZ+cn_=d? zd*8Y9ZuMvLUbFHc9ojhfr1Y7yV@kw9Z--d7jFb93S~_Q{UMf`!Io2#S&#%#A(t!Y^a@(Xg)83oj{9i~s-t diff --git a/PiHoleShell/PiHoleShell.psm1 b/PiHoleShell/PiHoleShell.psm1 index 9e83669..66bbf0d 100644 --- a/PiHoleShell/PiHoleShell.psm1 +++ b/PiHoleShell/PiHoleShell.psm1 @@ -2,5 +2,9 @@ if ($PSVersionTable.PSEdition -ne 'Core') { throw "PiHoleShell module only supports PowerShell Core 7+. You are using $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion)." } -Get-ChildItem $PSScriptRoot\Private\*.ps1 -Recurse | ForEach-Object { . $_.FullName } -Get-ChildItem $PSScriptRoot\Public\*.ps1 -Recurse | ForEach-Object { . $_.FullName } \ No newline at end of file +# Get all .ps1 files in the 'Public' directory and dot-source them +$PublicFunctions = Get-ChildItem -Path (Join-Path $PSScriptRoot 'Public') -Filter '*.ps1' -File + +foreach ($File in $PublicFunctions) { + . $File.FullName +} \ No newline at end of file diff --git a/PiHoleShell/Public/Metrics.ps1 b/PiHoleShell/Public/Metrics.ps1 index 6e4243f..b012841 100644 --- a/PiHoleShell/Public/Metrics.ps1 +++ b/PiHoleShell/Public/Metrics.ps1 @@ -302,6 +302,4 @@ Get-PiHoleStatsSummary -PiHoleServer "http://pihole.domain.com:8080" -Password " Remove-PiHoleCurrentAuthSession -PiHoleServer $PiHoleServer -Sid $Sid -IgnoreSsl $IgnoreSsl } } -} - -Export-ModuleMember -Function Get-PiHoleStatsRecentBlocked, Get-PiHoleStatsQueryType, Get-PiHoleStatsTopDomain, Get-PiHoleStatsSummary \ No newline at end of file +} \ No newline at end of file From 6e88ab1651d172c4ddc228a893a93c34483312b5 Mon Sep 17 00:00:00 2001 From: Mike Madeja Date: Sun, 15 Jun 2025 22:48:14 -0500 Subject: [PATCH 2/3] debugging --- .github/workflows/CreateRelease.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index dcf0bf7..1249c28 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -69,7 +69,7 @@ jobs: $apiKey = '${{ secrets.POWERSHELLGALLERY }}' $modulePath = "PiHoleShell" # Change to your actual module folder $manifest = Get-ChildItem -Path $modulePath -Filter PiHoleShell.psd1 -Recurse | Select-Object -First 1 - (Get-Content $($manifest.fullname)) -replace '0.0.0', $ENV:NEW_TAG | Out-File $manifest.fullname + (Get-Content $($manifest.fullname)) -replace '0.0.0', ($ENV:TAG -replace "v", "") | Out-File $manifest.fullname Write-Host "Replacing 0.0.0 with $ENV:NEW_TAG" if (-not $manifest) { From dea5cd3c341fa0872bf1395e0005b36162dbd77b Mon Sep 17 00:00:00 2001 From: Mike Madeja Date: Sun, 15 Jun 2025 22:50:08 -0500 Subject: [PATCH 3/3] debugging --- PiHoleShell/PiHoleShell.psd1 | Bin 1704 -> 2136 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/PiHoleShell/PiHoleShell.psd1 b/PiHoleShell/PiHoleShell.psd1 index 796256cf0d1c809e2f80ad9586504c0dd71ca317..260ed87d04cef199e8e898c327a74f8afe878fa0 100644 GIT binary patch delta 453 zcma)&I|{-;6h#lD6GWF_r-JsDegd%)NpJz8F^ZZ+cn_=d? zd*8Y9ZuMvLUbFHc9ojhfr1Y7yV@kw9Z--d7jFb93S~_Q{UMf`!Io2#S&#%#A(t!Y^a@(Xg)83oj{9i~s-t delta 18 Zcmca1u!4637c;9mgBFAO=KU-)nE^451nK|)