Fix exit code when partial file not found

This commit is contained in:
Alexey Maslennikov
2017-06-23 21:10:38 +02:00
parent 6376a9b817
commit 078dcabb06
4 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1 @@
cat: partial-missing.partial: No such file or directory

8
tests/partial-missing.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
cd "${0%/*}"
../mo partial-missing.template 2>&1
if [[ $? -ne 1 ]]; then
echo "Did not return 1"
fi

View File

@@ -0,0 +1 @@
Won't be there: {{> partial-missing.partial}}