mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-23 22:53:35 +00:00
btrfs-progs: tests, common: fix typo after cleanup
The previous value for unknown was -1. Reported-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
6b1e8226e4
commit
c392c2b5af
@ -94,7 +94,7 @@ setup_root_helper()
|
||||
# Newer sudo or default sudo setting
|
||||
sudo -v -n &>/dev/null && NEED_SUDO_VALIDATE=yes
|
||||
|
||||
if [ "$NEED_SUDO_VALIDATE" = 'yes' ]; then
|
||||
if [ "$NEED_SUDO_VALIDATE" = 'unknown' ]; then
|
||||
_not_run "Need to validate root privileges"
|
||||
fi
|
||||
SUDO_HELPER=root_helper
|
||||
|
Loading…
Reference in New Issue
Block a user