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
|
#Send Notif Script
|
||||||
|
|
||||||
#get xml notif config
|
#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}
|
if (!($NotifConf)) {break}
|
||||||
|
|
||||||
#Load Assemblies
|
#Load Assemblies
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
function Init {
|
function Init {
|
||||||
#Var
|
#Var
|
||||||
$Script:WorkingDir = "C:\ProgramData\winget-update"
|
$Script:WorkingDir = $PSScriptRoot
|
||||||
|
|
||||||
#Logs initialisation
|
#Logs initialisation
|
||||||
$LogPath = "$WorkingDir\logs"
|
$LogPath = "$WorkingDir\logs"
|
||||||
|
|
Loading…
Reference in New Issue