mirror of
https://github.com/mloy97/RedboneBackup.git
synced 2026-01-01 10:05:56 -05:00
18 lines
No EOL
530 B
INI
18 lines
No EOL
530 B
INI
[gcode_macro update_git]
|
|
gcode:
|
|
{% set message = params.MESSAGE|default() %}
|
|
{% if message %}
|
|
RUN_SHELL_COMMAND CMD=update_git_script_message PARAMS="'{params.MESSAGE}'"
|
|
{% else %}
|
|
RUN_SHELL_COMMAND CMD=update_git_script
|
|
{% endif %}
|
|
|
|
[gcode_shell_command update_git_script]
|
|
command: bash -c "bash $HOME/klipper-backup/script.sh"
|
|
timeout: 90.0
|
|
verbose: True
|
|
|
|
[gcode_shell_command update_git_script_message]
|
|
command: bash -c "bash $HOME/klipper-backup/script.sh -c \"$0\""
|
|
timeout: 90.0
|
|
verbose: True |