Improve the conditional statement to correctly check the exit status of the curl command when resetting the conversation.
This commit is contained in:
parent
31ae31643b
commit
3149d1e73b
2
aicommit
2
aicommit
@ -35,7 +35,7 @@ message=$(
|
|||||||
".message = $(jq -R -s '@json' <<<"${message_cat}")"
|
".message = $(jq -R -s '@json' <<<"${message_cat}")"
|
||||||
)
|
)
|
||||||
|
|
||||||
if hasFlag -r --reset; then
|
if $(hasFlag -r --reset); then
|
||||||
curl -s -X POST https://infer.x64.world/reset-conversation "$@" >/dev/null
|
curl -s -X POST https://infer.x64.world/reset-conversation "$@" >/dev/null
|
||||||
if ! curl -s -X POST https://infer.x64.world/reset-conversation "$@" >/dev/null; then
|
if ! curl -s -X POST https://infer.x64.world/reset-conversation "$@" >/dev/null; then
|
||||||
echo "Failed to reset conversation."
|
echo "Failed to reset conversation."
|
||||||
|
Loading…
Reference in New Issue
Block a user