summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfwqaaq <[email protected]>2023-05-15 23:07:32 +0800
committerfwqaaq <[email protected]>2023-05-15 23:07:32 +0800
commitc75621554028dece1350e9ed004b8f324b4878c9 (patch)
tree81f125e61be754231cc001f58e0f3d54fe5e706a
parent4e768cef8bfada5097b9040a877400413adaef3e (diff)
update
-rw-r--r--xmake/actions/create/main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/create/main.lua b/xmake/actions/create/main.lua
index ff90e4602..69aa52997 100644
--- a/xmake/actions/create/main.lua
+++ b/xmake/actions/create/main.lua
@@ -31,9 +31,9 @@ end
-- create project from template
function _create_project(language, templateid, targetname)
- if targetname == '.' then
- raise("you should specify ${red}-P${reset} instead of directly using ${red}.${reset}")
- end
+
+ -- check the targetname
+ assert(targetname ~= ".", "you should specify ${red}-P${reset} instead of directly using ${red}.${reset}")
-- check the language
assert(language, "no language!")