Skip to content

Commit

Permalink
fix a bug introduced with e2792f2
Browse files Browse the repository at this point in the history
"break" prevented the extraction of multiple archive files
  • Loading branch information
r15ch13 committed Jul 10, 2018
1 parent 09e127b commit 0b13f37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,9 @@ function movedir($from, $to) {

# wait for robocopy to terminate its threads
1..10 | ForEach-Object {
if (!(Test-Path $from)) {
break
if (Test-Path $from) {
Start-Sleep -Milliseconds 100
}
Start-Sleep -Milliseconds 100
}
}

Expand Down

0 comments on commit 0b13f37

Please sign in to comment.