qa/workunits/objectstore/test_fuse.sh: fix root check

$EUID not defined everywhere.

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-02-01 15:48:53 -05:00
parent 300b15d5ad
commit 15ea140b3b

View File

@ -1,6 +1,6 @@
#!/bin/sh -ex
if [ $EUID -ne 0 ]; then
if ! id -u | grep -q '^0$'; then
echo "not root, re-running self via sudo"
sudo PATH=$PATH $0 || echo FAIL
exit 0