agentos-project / agentos

The Python Component System (PCS) is an API and CLI for building, running, and sharing Python code. AgentOS is a set of libraries built on top of PCS that make it easy to build, run, and share agents that use Reinforcement Learning.
https://agentos.org
Apache License 2.0
13 stars 4 forks source link

Demo shell scripts should bail after first command fails #383

Closed andyk closed 2 years ago

andyk commented 2 years ago

Currently, documentation/demos/demo_ilya_papag_from_cli.sh will keep on running subsequent commands after a given command fails. This probably doesn't make sense, and instead the script should stop running after any command in it fails (i.e. returns non-zero exit status).

This can be done by changing set -x at the top of the script to set -xe.