mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-28 22:54:12 +08: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