summaryrefslogtreecommitdiff
path: root/xmake/core/base/os.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-28 21:58:52 +0800
committerruki <[email protected]>2017-03-28 21:58:52 +0800
commit8e0c711fb2ea0fb3a54b9f2b41d1907fc4be8b02 (patch)
treec9f7fdc3dc1ea9155e8fd01e57b66c71f0abaf72 /xmake/core/base/os.lua
parent6672a212d0ea74c3d6c6425b58b4fbb1dea7999c (diff)
add sudo interface
Diffstat (limited to 'xmake/core/base/os.lua')
-rw-r--r--xmake/core/base/os.lua12
1 files changed, 0 insertions, 12 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 542751d54..5fb51b194 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -590,17 +590,5 @@ function os.isexec(filepath)
return os.isfile(filepath)
end
--- get sudo program name for running program with administrator permission
-function os.sudo()
-
- -- on windows?
- if xmake._HOST == "windows" then
- -- TODO
- -- add sudo.bat
- else
- return "sudo"
- end
-end
-
-- return module
return os