From a54c44be90f1990f68e403c05447f2004024f520 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 28 Aug 2024 00:38:20 +0200 Subject: [PATCH] Set a default path for backup artifacts --- scripts/Windows/Scripts/Restoration.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Windows/Scripts/Restoration.ps1 b/scripts/Windows/Scripts/Restoration.ps1 index b30d5b3b..5eb4d642 100644 --- a/scripts/Windows/Scripts/Restoration.ps1 +++ b/scripts/Windows/Scripts/Restoration.ps1 @@ -16,6 +16,10 @@ $null = New-Module { $result = "System"; } + if (-not $Path) { + $Path = "Files"; + } + $result = Join-Path $result $Path; return $result; };