You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
Since it assumes that current_path exists. Which doesn't on first deploy.
Workaround:
task'smart:sidekiq:quiet'docommand" if [ -e '#{fetch(:current_path)}' ]; then#{get_task_commands('sidekiq:quiet')} fi "enddefget_task_commands(task)on(:get_task_commands_stage)doinvoketaskendcommands.delete(:get_task_commands_stage).join(" &&\n")end
Or a more elaborate version (that keeps the generated code nicely indented):
task'sidekiq:quiet:smart'docommand" if [ -e '#{fetch(:current_path)}' ]; then#{indent_but_first(6,get_task_commands('sidekiq:quiet')).join(" &&\n")} fi "enddefget_task_commands(task)on(:get_task_commands_stage)doinvoketaskendcommands.delete(:get_task_commands_stage)enddefindent_but_first(count,commands)commands.map.with_index{ |s,i| i > 0 ? indent(count,s) : s}end
The text was updated successfully, but these errors were encountered:
Since it assumes that
current_path
exists. Which doesn't on first deploy.Workaround:
Or a more elaborate version (that keeps the generated code nicely indented):
The text was updated successfully, but these errors were encountered: