mo/tests/source-bad-file.sh

9 lines
147 B
Bash
Raw Permalink Normal View History

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