From 3c17d4bb50ceff2ad7b42e0bb5caa3532d73660c Mon Sep 17 00:00:00 2001 From: Amit Raikwar | OMF <149316922+onemanfighter@users.noreply.github.com> Date: Sat, 25 May 2024 21:49:20 +0530 Subject: [PATCH] [Bug] fixing pre-commit test script (#12) --- scripts/run-staged-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-staged-tests.sh b/scripts/run-staged-tests.sh index a3a9703..570f9a1 100755 --- a/scripts/run-staged-tests.sh +++ b/scripts/run-staged-tests.sh @@ -28,7 +28,7 @@ for file in $changed_files; do fi done -if [ ${#all_these_files[@]} -gt 0]; then +if [ ${#all_these_files[@]} -gt 0 ]; then yarn test "${all_these_files[@]}" else echo "No test files found"