diff options
| -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 |
