diff --git a/assets/functions/tools/execute_command.sh b/assets/functions/tools/execute_command.sh index 0c6383b..4105a85 100755 --- a/assets/functions/tools/execute_command.sh +++ b/assets/functions/tools/execute_command.sh @@ -20,5 +20,5 @@ main() { trap "rm -f '$script'" EXIT # shellcheck disable=SC2154 printf '%s\n' "$argc_command" > "$script" - bash "$script" >> "$LLM_OUTPUT" + bash -e -o pipefail "$script" >> "$LLM_OUTPUT" }