mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-10-29 05:28:17 -04:00
port-jobs: Added default behavior for port-jobs if no argument is supplied
Former-commit-id: 0af03c8af7101fead7de41f2f644ea80c38a5392 Former-commit-id: 1f9607f85ca9d1cf786741a34124eda589f3dd95
This commit is contained in:
1 parent
d706bb4452
commit
92f26c47af
2 files changed
+25
-24
No files matched your search
@@ -6,7 +6,7 @@ from sys import argv
|
||||
arguments = argv[1:]
|
||||
|
||||
# define regular expression depending on arguments
|
||||
if arguments[0] == 'ALL':
|
||||
if len(arguments) > 0 and arguments[0] == 'ALL':
|
||||
regex = re.compile(r'^\s*#.*$\n?', re.MULTILINE)
|
||||
else:
|
||||
regex = re.compile(r'^\s*# PORT.*$\n?', re.MULTILINE)
|
||||
|
||||
Reference in new issue
Block a user