You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an automatic sudo prompt isn't possible (#334), then aura should at least have a special exit code, rather than 1, when sudo is required. This way, you don't need to grep stderr or check for used arguments in bash wrappers.
The text was updated successfully, but these errors were encountered:
Right now there's an ugly wrapper for people who expect automatic elevation from aura (as in pacaur and other helpers), from the ArchWiki:
function a(){
AURA="$(aura "$@")"
if echo "$AURA" | grep -q '^aura >>= .*You have to use `.*sudo.*` for that.*$'
then
sudo aura "$@"
else
echo "$AURA"
fi
}
With an exit code of say 2, this could be reduced to:
If an automatic sudo prompt isn't possible (#334), then aura should at least have a special exit code, rather than 1, when sudo is required. This way, you don't need to grep stderr or check for used arguments in bash wrappers.
The text was updated successfully, but these errors were encountered: