Use print_err function

This commit is contained in:
William Wernert
2021-08-03 15:26:57 -04:00
parent 9e5d3aa286
commit ef59cb47dd

View File

@@ -350,7 +350,7 @@ def main():
signal.signal(signal.SIGINT, sigint_handler) signal.signal(signal.SIGINT, sigint_handler)
if os.geteuid() != 0: if os.geteuid() != 0:
print('You must run this script as root', file=sys.stderr) print_err('You must run this script as root')
sys.exit(1) sys.exit(1)
apply_help='After updating rule configuration, apply the idstools state.' apply_help='After updating rule configuration, apply the idstools state.'