Skip to content

Commit

Permalink
fix: 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTaylorLee committed Jun 10, 2024
1 parent b250b49 commit b3689ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
13 changes: 6 additions & 7 deletions build/Invoke-Exporter.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ while ($true) {
$f2b = Invoke-SqliteQuery -ErrorAction continue -DataSource $DataSourcef2b -Query "Select ip FROM bips"
$log = Invoke-SqliteQuery -ErrorAction continue -DataSource $DataSourcelog -Query "Select ip FROM banned"

switch ($log) {
$null {
$ips = ($f2b).ip
}
default {
$ips = (Compare-Object ($f2b).ip ($log).ip).inputobject
}
if ($null -eq $log) {
$ips = ($f2b).ip
}
else {
$ips = (Compare-Object ($f2b).ip ($log).ip).inputobject
}


if ($null -ne $ips) {
$insertdata = Get-PublicIP $ips -Sleep 2
Expand Down
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Changelog
- 1.0.0 Initial image released
- 1.0.1 Fix if parameter
- 1.0.1 Fix if parameter
- 1.0.2 Fix if/else parameter
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.1
v1.0.2

0 comments on commit b3689ec

Please sign in to comment.