From 672b769cc10dc189c58df34ab77c2f97c84ac528 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Mon, 4 Jan 2021 00:18:23 -0700 Subject: [PATCH] inherit exit status from function --- .tests/pre-commit-frontend.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.tests/pre-commit-frontend.sh b/.tests/pre-commit-frontend.sh index 5e78f5e..bdfb007 100755 --- a/.tests/pre-commit-frontend.sh +++ b/.tests/pre-commit-frontend.sh @@ -22,15 +22,15 @@ do if [ "$arg" == "--typescript" ] then check_typescript - exit 0 + exit $? elif [ "$arg" == "--eslint" ] then check_eslint - exit 0 + exit $? elif [ "$arg" == "--prettier" ] then check_prettier - exit 0 + exit $? else echo "Arguments --typescript, --eslint, or --prettier required." exit 1