44
44
# Unfortunately this test may involve executing code. However, this
45
45
# file is already sourced as root when running update-grub, so it
46
46
# seems unlikely that this could do any further harm.
47
subprocess.check_call(['/bin/sh', '-ec', '. %s' % re.escape(path)],
49
['/bin/sh', '-ec', '. %s' % re.escape(path)], stderr=devnull)
49
50
except subprocess.CalledProcessError: