diff --git a/build/download.hxb b/build/download.hxb index 9925bc5..0e9aa8c 100644 Binary files a/build/download.hxb and b/build/download.hxb differ diff --git a/build/select.hxb b/build/select.hxb index d71731d..3555518 100644 Binary files a/build/select.hxb and b/build/select.hxb differ diff --git a/src/Utils.hx b/src/Utils.hx index 865a3f1..949bc48 100644 --- a/src/Utils.hx +++ b/src/Utils.hx @@ -42,7 +42,8 @@ function getVersions():Array { // TODO: windows vs symlinks function hasVersion(v:String):Bool { final dir = Path.join([versionsDir, v]); - return FileSystem.isDirectory(dir); + return FileSystem.exists(dir); + // return FileSystem.isDirectory(dir); } function selectVersion(v:String, ?skipCheck:Bool = false):Void { @@ -55,7 +56,8 @@ function selectVersion(v:String, ?skipCheck:Bool = false):Void { function selectRelease(r:String):Void { final dir = Path.join([releasesDir, r]); - if (!FileSystem.isDirectory(dir)) throw 'Version $r is not installed'; + if (!FileSystem.exists(dir)) throw 'Version $r is not installed'; + // if (!FileSystem.isDirectory(dir)) throw 'Version $r is not installed'; unlinkCurrent(); link(dir);