diff options
author | Araq <rumpf_a@web.de> | 2016-11-03 12:28:35 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-11-03 14:43:24 +0100 |
commit | 33ebf3e5fb05f45abadeff4747ab0e3031f75dd0 (patch) | |
tree | 7845c694d3bef842040e99396fa9304d1651ea03 | |
parent | ee8c1c6f93d6fb47719ec2f6390fc243c1bc8adc (diff) | |
download | Nim-33ebf3e5fb05f45abadeff4747ab0e3031f75dd0.tar.gz |
fixes criticial finish.nim bug
-rw-r--r-- | tools/finish.nim | 6 |
1 files changed, 4 insertions, 2 deletions
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): |