Skip to content

there doesn't seem to be any way to insert --min-mtime to yaycache-hook.conf #20

Description

@D33M0N
uninstalled_extra_args=(--min-mtime "30 days ago" --remove-build-files)
=
yaycache: option '--min-mtime' requires an argument
error: command failed to execute correctly


uninstalled_extra_args=(--min-mtime="30 days ago" --remove-build-files)
=
date: invalid date ‘30’
==> ERROR: argument to option --min-mtime must be of the form described by 'info "Date input formats" '.
error: command failed to execute correctly


uninstalled_extra_args=(--min-mtime="30\ days\ ago" --remove-build-files)
=
date: invalid date ‘30\\’
==> ERROR: argument to option --min-mtime must be of the form described by 'info "Date input formats" '.


uninstalled_extra_args="--min-mtime 30\ days\ ago --remove-build-files"
=
date: invalid date ‘30\\’
==> ERROR: argument to option --min-mtime must be of the form described by 'info "Date input formats" '.


uninstalled_extra_args="--min-mtime='30 days ago' --remove-build-files"
uninstalled_extra_args="--min-mtime '30 days ago' --remove-build-files"
=
date: invalid date ‘'30’
==> ERROR: argument to option --min-mtime must be of the form described by 'info "Date input formats" '.


uninstalled_extra_args='--min-mtime "30 days ago" --remove-build-files'
=
date: invalid date ‘"30’
==> ERROR: argument to option --min-mtime must be of the form described by 'info "Date input formats" '.

so basically I can't use escaping, spaces nor quotes. But all the relative dates of the 'info "Date input formats"' have spaces inside them.

the only "workaround" I found was...:

uninstalled_extra_args="--min-mtime=$(date -d '30 days ago' +%Y-%m-%d) --remove-build-files"

but I would prefer not to use the extra execution subshell inside the config variable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions