diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-11 09:09:45 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-11 09:09:45 -0400 |
| commit | aa3e08d98424e36d46a7a2dae444c2bfd13587e7 (patch) | |
| tree | 74bae484f6f480ac9213e5dd6fd7b23796d3b1d1 | |
| parent | Add --keepdb flag to tests script (diff) | |
| download | cli-aa3e08d98424e36d46a7a2dae444c2bfd13587e7.zip | |
Adjust variable placement in test.sh
| -rwxr-xr-x | scripts/test.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/test.sh b/scripts/test.sh index c31038f..fe14068 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -4,6 +4,9 @@ set -eou pipefail source "$(dirname "${BASH_SOURCE[0]}")/lib/log.sh" source "$(dirname "${BASH_SOURCE[0]}")/lib/test.sh" +KEEPDB=false +SUITE="" + usage() { echo "Usage: $0 [OPTIONS] [TEST_SUITE]" echo "" @@ -55,12 +58,9 @@ main() { } parse_args() { - KEEPDB=false - SUITE="" - while [[ $# -gt 0 ]]; do case "$1" in - -h|--help) + -h | --help) usage exit 0 ;; |