Fixed warn_on_root default value

This commit is contained in:
Alexander Taylor 2014-07-06 14:53:54 +01:00
parent 0323f6cb18
commit fcf0b0aaf2

View file

@ -967,7 +967,7 @@ class Buildozer(object):
except NameError: except NameError:
pass pass
warn_on_root = self.config.getdefault('buildozer', 'warn_on_root', 'yay') warn_on_root = self.config.getdefault('buildozer', 'warn_on_root', '1')
euid = os.geteuid() euid = os.geteuid()
if warn_on_root == '1' and euid == 0: if warn_on_root == '1' and euid == 0:
print('\033[91m\033[1mBuildozer is running as root!\033[0m') print('\033[91m\033[1mBuildozer is running as root!\033[0m')