Skip to content

Commit

Permalink
test: uidmapping, needs sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Feb 17, 2024
1 parent 8bb213f commit ba6a906
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/uidmapping.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

TRY_TOP="${TRY_TOP:-$(git rev-parse --show-toplevel --show-superproject-working-tree)}"
TRY="$TRY_TOP/try"

control=$(id)
testing=$(sudo "$TRY" -u "$USER" id)

if [ "$control" = "$testing" ]
then
exit 0
else
exit 1
fi

0 comments on commit ba6a906

Please sign in to comment.