mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
2b611b8f90
The return code was not propagated through nested subshells in case when files were passed in as arguments.
10 lines
165 B
Bash
Executable File
10 lines
165 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cd "${0%/*}"
|
|
unset __NO_SUCH_VAR
|
|
../mo --fail-not-set ./fail-not-set-file.template 2>&1
|
|
|
|
if [[ $? -ne 1 ]]; then
|
|
echo "Did not return 1"
|
|
fi
|