#!/usr/bin/env bash
set -euo pipefail

output=$("$@" 2>&1)
status=$?
if ((status)); then
  echo "$output" >&2
fi

exit $status
