• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gabyx / Githooks / 6740
79%

Build:
DEFAULT BRANCH: main
Ran 20 Feb 2026 06:20PM UTC
Jobs 1
Files 128
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Feb 2026 06:11PM UTC coverage: 78.813%. Remained the same
6740

push

circleci

web-flow
fix: error on missing `--version` value in install.sh (#190)

The `parse_args()` function accepted `--version` without a following
value argument. When `--version` was the last argument, the loop ended
with `versionTag` empty and the script silently fell through to
fetching the latest release. When `--version` was followed by a flag
(e.g. `--version --`), the flag was consumed as a literal version
value, producing confusing downstream errors.

Add two guards:
- After the loop, check that `prev` is not `--version` when
  `versionTag` is empty (catches missing value at end of args).
- In the `prev="--version"` branch, reject any value starting with
  `-` (catches `--version --`, `--version --uninstall`, etc.).

Both cases now print a clear error to stderr and return 1, so `set -e`
aborts the script.

Co-authored-by: Gabriel Nützi <gnuetzi@gmail.com>

9549 of 12116 relevant lines covered (78.81%)

1729.83 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6740.1 20 Feb 2026 06:20PM UTC 128
78.81
CircleCI Job
Source Files on build 6740
  • Tree
  • List 128
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #6740
  • dcc91d8d on github
  • Prev Build on main (#6726)
  • Next Build on main (#6741)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc