From 4326f4806476b88e6923aa55ab4ff343b82cfb49 Mon Sep 17 00:00:00 2001 From: WombatFromHell Date: Wed, 6 Mar 2024 11:36:28 -0700 Subject: [PATCH] Manually test for default case in test.sh --- test.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test.sh b/test.sh index ecf332db..ec08f93c 100755 --- a/test.sh +++ b/test.sh @@ -51,7 +51,13 @@ help() { eval set -- "$(getopt -o bhrs -- "$@")" -while [[ $# -gt 0 ]]; do +if [[ $# -eq 1 ]]; then + build + run pnpm test + exit 0 +fi + +while [[ $# -gt 1 ]]; do case "$1" in -b) build # not mutually exclusive @@ -74,9 +80,7 @@ while [[ $# -gt 0 ]]; do help ;; *) - build - run pnpm test - break + help ;; esac done