mirror of
https://github.com/erenfro/gen2stage4.git
synced 2024-12-22 08:41:06 -05:00
Update test to mask id for root checks
This commit is contained in:
parent
b17a565599
commit
e309ffafc0
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,10 @@ export -f uname
|
|||
whoami() { echo "root"; }
|
||||
export -f whoami
|
||||
|
||||
# bypasses root check
|
||||
id() { echo "0"; }
|
||||
export -f id
|
||||
|
||||
skip_if_not_root() {
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
skip "Must be root for this test."
|
||||
|
|
Loading…
Reference in a new issue