Skip to content

Commit

Permalink
improve sudo lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 26, 2024
1 parent 9d01da2 commit c4e9dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/modules/privilege/sudo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function _lua(runner, luafile, luaargv)
end

-- run it with administrator permission
_sudov(runner, "xmake", table.join(argv, luafile, luaargv))
_sudov(runner, os.programfile(), table.join(argv, luafile, luaargv))
end

-- has sudo?
Expand Down

0 comments on commit c4e9dcd

Please sign in to comment.