diff options
| author | xq114 <[email protected]> | 2022-02-15 15:42:35 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2022-02-15 15:42:35 +0800 |
| commit | 3e6b8e42ccbf7eab03f57d98025139423d477e66 (patch) | |
| tree | 4dfa904afc155f3a9570287faf7b02eba0ab82ed | |
| parent | b1c67cc18b7cb658a258d027ecf026fdf3a4f2cd (diff) | |
improve uninstall function
| -rw-r--r-- | xmake/actions/update/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 8d4f4b582..5ff75f69e 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -115,7 +115,7 @@ function _uninstall() for _, type in ipairs({"AllUsersAllHosts", "CurrentUserAllHosts", "CurrentUserCurrentHost"}) do local psshell = find_tool(shell) if psshell then - local outdata, errdata = try {function () return os.iorunv(shell, {"-c", "Write-Output $PROFILE." .. type}) end} + local outdata, errdata = try {function () return os.iorunv(psshell.program, {"-c", "Write-Output $PROFILE." .. type}) end} if outdata then table.insert(profiles, outdata:trim()) end |
