mirror of
https://github.com/mloy97/RedboneBackup.git
synced 2026-01-01 17:15:58 -05:00
shell_command.cfg modified - 04/08/25 - 04:36:13
This commit is contained in:
parent
1439fee3d1
commit
af2a313262
1 changed files with 17 additions and 6 deletions
|
|
@ -1,7 +1,18 @@
|
||||||
[gcode_shell_command hello_world]
|
[gcode_macro update_git]
|
||||||
command: echo hello world
|
|
||||||
timeout: 2.
|
|
||||||
verbose: True
|
|
||||||
[gcode_macro HELLO_WORLD]
|
|
||||||
gcode:
|
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
|
||||||
Loading…
Reference in a new issue