diff options
| author | sigoden <sigoden@gmail.com> | 2024-11-16 11:09:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-16 11:09:40 +0800 |
| commit | 86aa9106090a0219bac30bc12f5a5bd91949afd9 (patch) | |
| tree | 69aef8c03242c67480c4edfe42a2cbf4c785b466 /tools/send_twilio.sh | |
| parent | 6d30c22b82a5ac1a5775d8137c3b08a581770273 (diff) | |
| download | llm-functions-docker-86aa9106090a0219bac30bc12f5a5bd91949afd9.tar.gz | |
refactor: improve bash code (#125)
* refactor: extract guard_path to utils/guard_path.sh
* add utils/guard_operation.sh
Diffstat (limited to 'tools/send_twilio.sh')
| -rwxr-xr-x | tools/send_twilio.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/send_twilio.sh b/tools/send_twilio.sh index 2a197ff..0259efb 100755 --- a/tools/send_twilio.sh +++ b/tools/send_twilio.sh @@ -31,10 +31,10 @@ main() { if [[ "$(echo "$body" | jq -r 'has("sid")')" == "true" ]]; then echo "Message sent successfully" >> "$LLM_OUTPUT" else - _die "$body" + _die "error: $body" fi else - _die "$body" + _die "error: $body" fi } |
