From cc98edab6ceb2a92e42eed52a35a4f20b061c794 Mon Sep 17 00:00:00 2001 From: albert <albert@sysctl.io> Date: Mon, 21 Apr 2025 11:47:43 +0200 Subject: [PATCH] Update script --- home-manager/common/software/cli/fish/functions.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home-manager/common/software/cli/fish/functions.nix b/home-manager/common/software/cli/fish/functions.nix index 6e360aa6..308469c6 100644 --- a/home-manager/common/software/cli/fish/functions.nix +++ b/home-manager/common/software/cli/fish/functions.nix @@ -220,7 +220,7 @@ end # --- Read Piped Input --- - set -l message_body "Command completed" + set -l message_body "$(date)\n Command completed" # --- Manual JSON Escaping --- set -l escaped_subject (string replace -a '\\' '\\\\' "$subject" | string replace -a '"' '\\"') @@ -231,11 +231,11 @@ "$escaped_subject" "$escaped_message" $priority) # --- Execute curl (Verbose, Foreground) --- - echo $json_payload | curl -v -X POST \ + echo $json_payload | curl -X POST \ -H "Content-Type: application/json" \ -H "X-Gotify-Key: $gotify_token" \ --data @- \ - "$gotify_url/message" + "$gotify_url/message" > /dev/null # --- Check curl Status --- set curl_status $status