From 28f106acf8d071049b8615ff19616d4a8be7fbe3 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 30 Jan 2021 21:20:38 +0800 Subject: fix update --- xmake/core/main.lua | 2 +- xmake/core/sandbox/modules/import/core/base/task.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/core/main.lua b/xmake/core/main.lua index ec7d9b222..fb4de9570 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -281,7 +281,7 @@ Or you can add `--root` option or XMAKE_ROOT=y to allow run as root temporarily. -- get task instance local taskname = option.taskname() or "build" - local taskinst = project.task(taskname) or task.task(taskname) + local taskinst = task.task(taskname) or project.task(taskname) if not taskinst then return main._exit(string.format("do unknown task(%s)!", taskname)) end diff --git a/xmake/core/sandbox/modules/import/core/base/task.lua b/xmake/core/sandbox/modules/import/core/base/task.lua index 711ee09fd..8b055aac5 100644 --- a/xmake/core/sandbox/modules/import/core/base/task.lua +++ b/xmake/core/sandbox/modules/import/core/base/task.lua @@ -54,7 +54,7 @@ function sandbox_core_base_task.run(taskname, options, ...) -- get task instance local taskname = option.taskname() or "build" - local taskinst = project.task(taskname) or task.task(taskname) + local taskinst = task.task(taskname) or project.task(taskname) if not taskinst then raise("do unknown task(%s)!", taskname) end -- cgit v1.3.1