lol. forgot to actually call it.

This commit is contained in:
brent s 2017-10-09 16:32:13 -04:00
parent eb6999169e
commit c49112a28d

View File

@ -55,14 +55,15 @@ def chkDisk(disk):
subprocess.run(c, stdout = DEVNULL)
return()

def main():
for d in getDisks():
chkDisk(d)

def userChk():
# Needs to be run as root/with sudo, because of e.g. cryptsetup, etc.
if os.geteuid() != 0:
raise PermissionError('This script must be run with root privileges.')

def main():
userChk()
for d in getDisks():
chkDisk(d)

if __name__ == '__main__':
main()