Fix non-functioning code

This commit is contained in:
Manuel Thalmann 2023-06-22 18:34:05 +02:00
parent 282c21f6ab
commit 6a57e2cbaf

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."; $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."; Write-Host "No file could be found at the specified path.";
return Read-Path; return Read-Path;