Add set -xe to ric_automation.sh