Merge pull request 'FIX: Added return statement if invalid PATH in cron job creation' (#6) from missing_return_statement into main
Reviewed-on: #6
This commit is contained in:
commit
cbe8a7f65b
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ def create_cron_job(cron_job: str, config_file: Path):
|
|||
print(
|
||||
f"No executable found, please add this to your crontab manually: '/path/to/adgroupsync --conf {config_file} >/dev/null 2>&1'"
|
||||
)
|
||||
return
|
||||
|
||||
# Checking if the string is valid
|
||||
if not CronSlices.is_valid(cron_job):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue