Fix non-functioning code

This commit is contained in:
Manuel Thalmann 2023-06-22 18:34:05 +02:00
parent 5d0e355900
commit 98dd4542a5

View file

@ -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;