#!/bin/sh set -eu status=0 composer audit --locked --abandoned=fail --format=json > audit.json || status=$? cat audit.json exit "$status"