finish.nim: user has multiple chances to move .7z file to proper location

This commit is contained in:
Araq 2017-02-11 00:24:22 +01:00
commit c8ae7164e5

View file

@ -209,6 +209,9 @@ proc main() =
of Manual: of Manual:
echo "After download, move it to: ", dest echo "After download, move it to: ", dest
if askBool("Download successful? (y/n) "): if askBool("Download successful? (y/n) "):
while not fileExists("dist" / mingw):
echo "could not find: ", "dist" / mingw
if not askBool("Try again? (y/n) "): break
if unzip(): retry = true if unzip(): retry = true
of Failure: discard of Failure: discard
of Success: of Success: