mo/tests/source-no-file.sh

9 lines
150 B
Bash
Raw Normal View History

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