Skip to content

Commit

Permalink
Fix bug in servcheck crashing when --url used
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Brandt committed Apr 9, 2018
1 parent 5b0442c commit bc70b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/servcheck
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bc70b6a

Please sign in to comment.