mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 17:23:22 +03:00
🐛 Bug Report: create-one-time-access-token.sh doesn't work with its optional arguments #413
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @antifuchs on GitHub.
Reproduction steps
When I invoke
create-one-time-access-token.sh -d /path/to/db foo@example.comit errors saying that the username-disn't valid.Expected behavior
It should access the given database and create an access token for the user foo@example.com.
Actual Behavior
It sets the user identifier to the first arg on line 3, which is before optional argument processing happens; that variable should instead be set after the optional args get shifted away, on line 18.
@stonith404 commented on GitHub:
Thanks, this should be fixed in
v0.24.1