shell_command.cfg modified - 04/08/25 - 04:36:13

This commit is contained in:
miguel 2025-08-04 04:36:20 +01:00
parent 1439fee3d1
commit af2a313262

View file

@ -1,7 +1,18 @@
[gcode_shell_command hello_world]
command: echo hello world
timeout: 2.
verbose: True
[gcode_macro HELLO_WORLD]
[gcode_macro update_git]
gcode:
RUN_SHELL_COMMAND CMD=hello_world
{% 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