diff options
| author | xq114 <[email protected]> | 2022-02-21 17:03:20 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2022-02-21 17:03:20 +0800 |
| commit | 7b1eaeda786524fa2ffcb84b4879904867a55e7a (patch) | |
| tree | fd58646387413437ce8f1a75c351cbaebb2acdd0 | |
| parent | 2f76f4827888ec2ad996574d9370d40b37207dfb (diff) | |
improve format
| -rw-r--r-- | xmake/actions/update/main.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/action/env.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 8df05c24b..b96dfe02b 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -149,10 +149,10 @@ function _uninstall() end else if os.programdir():startswith("/usr/") then - _sudo_v("xmake", {"lua", "rm", os.programdir() }) + _sudo_v("xmake", {"lua", "rm", os.programdir()}) for _, f in ipairs({"/usr/local/bin/xmake", "/usr/local/bin/xrepo", "/usr/bin/xmake", "/usr/bin/xrepo"}) do if os.isfile(f) then - _sudo_v("xmake", {"lua", "rm", f }) + _sudo_v("xmake", {"lua", "rm", f}) end end else diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua index d0418ee90..2ab817587 100644 --- a/xmake/modules/private/xrepo/action/env.lua +++ b/xmake/modules/private/xrepo/action/env.lua @@ -472,7 +472,7 @@ function main() else local program = option.get("program") if program and program == "shell" then - utils.warning("The shell was not integrated with xmake. Some features might be missing. Please switch to your default shell, and run `xmake update --integrate` to integrate the shell.") + wprint("The shell was not integrated with xmake. Some features might be missing. Please switch to your default shell, and run `xmake update --integrate` to integrate the shell.") end local envs = _package_getenvs() if program and not option.get("show") then |
