Skip to content

Commit

Permalink
Gracefully fail when removing exercises folder
Browse files Browse the repository at this point in the history
If for whatever reason the `exercises` folder cannot be removed the
`setup.ps1` script did not stop but continue running potentionally
spilling a lot of error messages.
With this change the failing deletion will stop the setup script.

Resolves: eficode-academy#243
  • Loading branch information
bothzoli authored and RandomSort committed Jul 1, 2020
1 parent 0f71c3c commit 33249c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/make-exercise-repo.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# First cleanup if there is an old exercise repository
if (Test-Path .\exercise) {
Remove-Item .\exercise\ -force -recurse
Remove-Item .\exercise\ -Force -Recurse -ErrorAction:Stop
}

# Initialize a new repository
Expand Down

0 comments on commit 33249c1

Please sign in to comment.