#!/bin/sh set -eu ret=$1; shift msg="$@"; msg="${msg%% --*}" echo "$msg" exit $ret