Fix incorrect variable overrides
This commit is contained in:
parent
24ef21e8d4
commit
e0fd6a6de7
11 changed files with 111 additions and 69 deletions
scripts/Windows/Software/reWASD
|
@ -1,7 +1,10 @@
|
|||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||
$path = "$env:PUBLIC/Documents/reWASD";
|
||||
$softwareName = "reWASD";
|
||||
|
||||
function Invoke-BackupReWASD([Context] $context) {
|
||||
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-x@`"$PSScriptRoot/exclude.txt`""));
|
||||
$null = New-Module {
|
||||
$path = "$env:PUBLIC/Documents/reWASD";
|
||||
$softwareName = "reWASD";
|
||||
|
||||
function Invoke-BackupReWASD([Context] $context) {
|
||||
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-x@`"$PSScriptRoot/exclude.txt`""));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue