Skip to content

Commit

Permalink
Manually test for default case in test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
WombatFromHell committed Mar 6, 2024
1 parent 6c1050a commit 4326f48
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -74,9 +80,7 @@ while [[ $# -gt 0 ]]; do
help
;;
*)
build
run pnpm test
break
help
;;
esac
done
Expand Down

0 comments on commit 4326f48

Please sign in to comment.