This could technically be covered already e.g. requires "${EUID:-$(id -u)}"=0 or requires "${USER}"=root, but it would be good to have a shortcut argument for this. I'm not sure about how to syntactically lay that out yet, or maybe split this out to a separate function (a generic assert() perhaps?)
requires root_priv and/or requires root_privilege might be the simplest thing to do here...
This could technically be covered already e.g.
requires "${EUID:-$(id -u)}"=0
orrequires "${USER}"=root
, but it would be good to have a shortcut argument for this. I'm not sure about how to syntactically lay that out yet, or maybe split this out to a separate function (a genericassert()
perhaps?)requires root_priv
and/orrequires root_privilege
might be the simplest thing to do here...