From c23f1d7f3599aed557c52eeff5233fa782bad3f3 Mon Sep 17 00:00:00 2001 From: pi Date: Sat, 19 Apr 2025 13:16:53 +1000 Subject: [PATCH] update_git.cfg modified - 19/04/25 - 13:16:50 --- printer_data/config/CUSTOM/update_git.cfg | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/printer_data/config/CUSTOM/update_git.cfg b/printer_data/config/CUSTOM/update_git.cfg index e69de29..e241aaf 100644 --- a/printer_data/config/CUSTOM/update_git.cfg +++ b/printer_data/config/CUSTOM/update_git.cfg @@ -0,0 +1,18 @@ +[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 \ No newline at end of file