Skip to content

Commit

Permalink
Update Posterizarr.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
fscorrupt authored Nov 8, 2024
1 parent 7425575 commit 30591ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Posterizarr.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6363,7 +6363,7 @@ if ($global:OSType -ne "Win32NT") {
$global:OSarch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture
if ($global:OSType -eq "Docker" -or $global:OSarch -eq "Arm64") {
$magick = 'magick'
if ($AssetPath -match './'){
if ($AssetPath -match '^./'){
Write-Entry -Message "You have set your asset path to '$AssetPath', please change it to '/assets'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Red -log Error
Write-Entry -Subtext "Exiting Posterizarr now..." -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Red -log Error
# Clear Running File
Expand All @@ -6375,7 +6375,7 @@ if ($global:OSType -ne "Win32NT") {
}
Exit 0
}
if ($BackupPath -match './'){
if ($BackupPath -match '^./'){
Write-Entry -Message "You have set your backup path to '$BackupPath', please change it to '/backuppath'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Red -log Error
Write-Entry -Subtext "Exiting Posterizarr now..." -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Red -log Error
# Clear Running File
Expand All @@ -6387,7 +6387,7 @@ if ($global:OSType -ne "Win32NT") {
}
Exit 0
}
if ($ManualAssetPath -match './'){
if ($ManualAssetPath -match '^./'){
Write-Entry -Message "You have set your manualasset path to '$ManualAssetPath', please change it to '/manualassets'" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Red -log Error
Write-Entry -Subtext "Exiting Posterizarr now..." -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Red -log Error
# Clear Running File
Expand Down Expand Up @@ -20970,4 +20970,4 @@ else {
if ($global:UptimeKumaUrl){
Send-UptimeKumaWebhook -status "up" -ping $executionTime.TotalMilliseconds
}
}
}

0 comments on commit 30591ab

Please sign in to comment.