mirror of
https://github.com/Jguer/yay
synced 2024-09-14 13:51:12 +00:00
Error when installing AUR packages as root
This commit is contained in:
parent
345cc5475b
commit
de29fc1b0f
|
@ -95,6 +95,9 @@ func install(parser *arguments) error {
|
|||
}
|
||||
|
||||
hasAur := len(dt.Aur) != 0
|
||||
if hasAur && 0 == os.Geteuid() {
|
||||
return fmt.Errorf(red(arrow + " Refusing to install AUR Packages as root, Aborting."))
|
||||
}
|
||||
dc, err = getDepCatagories(parser.formatTargets(), dt)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue