diff --git a/ulib/support/mkcrypt.py b/ulib/support/mkcrypt.py index a67664a..07b589b 100755 --- a/ulib/support/mkcrypt.py +++ b/ulib/support/mkcrypt.py @@ -18,7 +18,7 @@ if __name__ == '__main__': USAGE mkcrypt.py clear [salt]""" sys.exit(0) - elif args[0] == '--': + elif len(args) > 0 and args[0] == '--': args = args[1:] clpasswd = args[0:1] and args[0] or None