From 6a57e2cbaf0079248729c63825d28c159a76d1f9 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 22 Jun 2023 18:34:05 +0200 Subject: [PATCH] Fix non-functioning code --- scripts/Windows/OS/Manage.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Manage.ps1 b/scripts/Windows/OS/Manage.ps1 index ee54b39d..e78ec01f 100644 --- a/scripts/Windows/OS/Manage.ps1 +++ b/scripts/Windows/OS/Manage.ps1 @@ -34,7 +34,7 @@ function Invoke-WindowsRestore([Context] $context) { { $backupPath = Read-Host -Prompt "Please enter the path to the archive load the backup from."; - if (-not $backupPath -or (-not (Test-Path -PathType Leaf $backupPath))) + if ((-not $backupPath) -or (-not (Test-Path -PathType Leaf $backupPath))) { Write-Host "No file could be found at the specified path."; return Read-Path;