diff --git a/wakeup.ps1 b/wakeup.ps1 index 34543b1..4d1c464 100644 --- a/wakeup.ps1 +++ b/wakeup.ps1 @@ -32,8 +32,14 @@ function exitError($errMessage, $PSItem, $exitCode = 1) Exit $exitCode } -$wolModuleName = "wol-magicPacket" -$wolDatabase = "WOLDatabase.xml" +function exitGracefully() +{ + Write-Host -ForegroundColor Green "`r`nFinished.`r`n" + Exit 0 +} + +# constants +Set-Variable -Name wolModuleName -Value "wol-magicPacket" -Option Constant # exit on error if Send-MagicPacket module is not loaded if (!(Get-Module -Name $wolModuleName))