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:
Marc Koch 2025-04-01 14:11:50 +02:00
commit cbe8a7f65b

View file

@ -91,6 +91,7 @@ def create_cron_job(cron_job: str, config_file: Path):
print( print(
f"No executable found, please add this to your crontab manually: '/path/to/adgroupsync --conf {config_file} >/dev/null 2>&1'" 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 # Checking if the string is valid
if not CronSlices.is_valid(cron_job): if not CronSlices.is_valid(cron_job):