diff options
| author | ruki <[email protected]> | 2020-11-12 00:35:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-12 00:35:46 +0800 |
| commit | 227af87c7971216a13df726f7ff08a7c253af700 (patch) | |
| tree | 74728218c48548984570bd5ff27cfc24c49929ee | |
| parent | 65e9807729ed2a9a87e6e8d6a1a2187cdc30b9ca (diff) | |
fix pacman/install_package
| -rw-r--r-- | xmake/modules/package/manager/pacman/install_package.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/pacman/install_package.lua b/xmake/modules/package/manager/pacman/install_package.lua index 651914581..79f488c45 100644 --- a/xmake/modules/package/manager/pacman/install_package.lua +++ b/xmake/modules/package/manager/pacman/install_package.lua @@ -53,7 +53,7 @@ function main(name, opt) end -- install package directly if the current user is root - if os.isroot() then + if is_subhost("msys") or os.isroot() then os.vrunv(pacman.program, argv) -- install with administrator permission? elseif sudo.has() then |
