From 2f4297339f80b749512f1cb9335abc236dd4c5d4 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 14 Nov 2018 22:30:05 +0800 Subject: fix update bug on linux --- xmake/actions/update/main.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 4bcc334be..6981d2231 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -251,10 +251,12 @@ function main() end -- cannot support to update dev/master on windows - if is_host("windows") and not version:find('.', 1, true) then - raise("not support to update %s on windows!", version) - else - mainurls = {format("https://github.com/tboox/xmake/releases/download/%s/xmake-%s.exe", version, version)} + if is_host("windows") then + if version:find('.', 1, true) then + mainurls = {format("https://github.com/tboox/xmake/releases/download/%s/xmake-%s.exe", version, version)} + else + raise("not support to update %s on windows!", version) + end end -- trace -- cgit v1.3.1