mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-02 06:46:29 -04:00
make it fail on non-zero exit codes instead
This commit is contained in:
parent
4309173c08
commit
3d468a80ce
1 changed files with 1 additions and 6 deletions
|
|
@ -17,12 +17,7 @@ self: {
|
||||||
${cfg.settings}
|
${cfg.settings}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
output=$(${cfg.package}/bin/mango -c "$out" -p 2>&1 || true)
|
${cfg.package}/bin/mango -c "$out" -p || exit 1
|
||||||
|
|
||||||
if echo "$output" | grep -Fq '[ERROR]:'; then
|
|
||||||
echo "$output"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue