mirror of
https://github.com/Jguer/yay.git
synced 2025-10-04 00:03:11 -04:00
Updated sudo check for -Rp
This commit is contained in:
parent
d406966174
commit
48e1d65539
@ -141,6 +141,9 @@ func (parser *arguments) needRoot() bool {
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
case "R", "remove":
|
case "R", "remove":
|
||||||
|
if parser.existsArg("p", "print", "print-format") {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
case "S", "sync":
|
case "S", "sync":
|
||||||
if parser.existsArg("y", "refresh") {
|
if parser.existsArg("y", "refresh") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user