commit d8f0ae2da034f6edbf1bbf85cb297fd1c11be8e5 parent 68aff5cc7ed9a7581b2075d1469147ddbff35f10 Author: Jan Klemkow <j.klemkow@wemelug.de> Date: Thu, 6 Feb 2020 07:12:31 +0100 simplify exit code passthrough test Diffstat:
| M | Makefile | | | 4 | ++-- | 
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -10,5 +10,5 @@ clean: test: scroll # return code passthrough of childs - ./scroll /usr/bin/true && if [ $$? -ne 0 ]; then exit 1; fi - ./scroll /usr/bin/false || if [ $$? -ne 1 ]; then exit 1; fi + if ! ./scroll /usr/bin/true; then exit 1; fi + if ./scroll /usr/bin/false; then exit 1; fi
