From 33ebf3e5fb05f45abadeff4747ab0e3031f75dd0 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 3 Nov 2016 12:28:35 +0100 Subject: fixes criticial finish.nim bug --- tools/finish.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/finish.nim b/tools/finish.nim index 8b9acfc56..cac001d79 100644 --- a/tools/finish.nim +++ b/tools/finish.nim @@ -114,8 +114,10 @@ proc main() = var mingWchoices: seq[string] = @[] var incompat: seq[string] = @[] for x in p.split(';'): - let y = expandFilename(if x[0] == '"' and x[^1] == '"': - substr(x, 1, x.len-2) else: x) + if x.len == 0: continue + let y = try: expandFilename(if x[0] == '"' and x[^1] == '"': + substr(x, 1, x.len-2) else: x) + except: "" if y == desiredPath: alreadyInPath = true if y.toLowerAscii.contains("mingw"): if dirExists(y): -- cgit 1.4.1-2-gfad0 p> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/enumerate/Readme
blob: 2e0649f9e32cafebb42279fed40c1ca5e0aeedd6 (plain) (blame)
1