From bc70b6a738d7f9a9f0b6ac1ba88922f656aa9e1f Mon Sep 17 00:00:00 2001 From: Carlos Brandt Date: Mon, 9 Apr 2018 22:37:57 +0200 Subject: [PATCH] Fix bug in servcheck crashing when --url used --- scripts/servcheck | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/servcheck b/scripts/servcheck index 6691b8e..0cea48b 100755 --- a/scripts/servcheck +++ b/scripts/servcheck @@ -96,8 +96,8 @@ if __name__ == '__main__': sys.exit(1) if args.url: - res = main(args.url,args.verification) - print(("%s[URL]%s\n%s" % (OUTPUT[res][0],COLOR_END,OUTPUT[res][1]))) + res = main([args.url],args.verification) + print(("%s[URL:%s]%s\t...\t%s" % (OUTPUT[res][0],args.url,COLOR_END,OUTPUT[res][1]))) if res: sys.exit(os.EX_OK) else: