#!/usr/bin/env bash cd "${0%/*}" || exit 1 echo "Do not display this" | ../mo --source=invalid 2>&1 if [[ $? -ne 1 ]]; then echo "Did not return 1" fi