Fix non-functioning code
This commit is contained in:
parent
282c21f6ab
commit
6a57e2cbaf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue