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 /scripts/declarations-util.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 'scripts/declarations-util.sh')
| -rwxr-xr-x | scripts/declarations-util.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/declarations-util.sh b/scripts/declarations-util.sh index 4ee5ca8..d82f4b4 100755 --- a/scripts/declarations-util.sh +++ b/scripts/declarations-util.sh @@ -63,7 +63,7 @@ end fi fi if [[ -z "$json_type" ]]; then - echo "invalid JSON data" + echo "error: invalid JSON data" >&2 exit 1 fi } |
