mirror of
https://github.com/Jguer/yay
synced 2024-10-31 13:42:27 +00:00
Error when installing AUR packages as root
This commit is contained in:
parent
345cc5475b
commit
de29fc1b0f
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ func install(parser *arguments) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
hasAur := len(dt.Aur) != 0
|
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)
|
dc, err = getDepCatagories(parser.formatTargets(), dt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue