Skip to content

Escape single quotes in cron job command label when building crontab (SLOP-7) #13

@tosfos

Description

@tosfos

Jira: SLOP-7

Problem: update_cron.sh builds a cron line with sh -c '$job_command'. If the container label cron.*.command contains a single quote, the generated line is malformed and can run the wrong command or fail.

Fix: Escape single quotes in $job_command when embedding in the sh -c string (e.g. replace ' with ''').

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions