mo/tests/source-bad-file.sh

9 lines
157 B
Bash
Executable File

#!/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