Add dynamic variable location
Change script execution location for dynamic variablepull/2/head v1.1.1
parent
b1c468117a
commit
3ccff07c27
|
@ -1,7 +1,7 @@
|
|||
#Send Notif Script
|
||||
|
||||
#get xml notif config
|
||||
[xml]$NotifConf = Get-Content "C:\ProgramData\winget-update\notif.xml" -Encoding UTF8
|
||||
[xml]$NotifConf = Get-Content "$PSScriptRoot\notif.xml" -Encoding UTF8
|
||||
if (!($NotifConf)) {break}
|
||||
|
||||
#Load Assemblies
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
function Init {
|
||||
#Var
|
||||
$Script:WorkingDir = "C:\ProgramData\winget-update"
|
||||
$Script:WorkingDir = $PSScriptRoot
|
||||
|
||||
#Logs initialisation
|
||||
$LogPath = "$WorkingDir\logs"
|
||||
|
|
Loading…
Reference in New Issue