diff options
Diffstat (limited to 'contrib/jail_prober.py')
-rwxr-xr-x | contrib/jail_prober.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/jail_prober.py b/contrib/jail_prober.py index 95e299624..f89f97ac4 100755 --- a/contrib/jail_prober.py +++ b/contrib/jail_prober.py | |||
@@ -164,8 +164,12 @@ def run_firejail(program, all_args): | |||
164 | 164 | ||
165 | 165 | ||
166 | def main(): | 166 | def main(): |
167 | profile_path = sys.argv[1] | 167 | try: |
168 | program = sys.argv[2] | 168 | profile_path = sys.argv[1] |
169 | program = sys.argv[2] | ||
170 | except IndexError: | ||
171 | print('USAGE: jail_prober.py <PROFILE-PATH> <PROGRAM>') | ||
172 | sys.exit() | ||
169 | # Quick error check and extract arguments | 173 | # Quick error check and extract arguments |
170 | check_params(profile_path) | 174 | check_params(profile_path) |
171 | profile = get_args(profile_path) | 175 | profile = get_args(profile_path) |