Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

replace [ $1 = 𝑥 ] with case statement (fix #15) #20

Merged
merged 1 commit into from
Mar 1, 2022
Merged

Conversation

LucasLarson
Copy link
Owner

now:

[ "${1}" = -v ] || [ "${1}" = --verbose ]

if we fix #15:

case "${1-}" in
  -v | --verbose)

Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
@LucasLarson LucasLarson added the enhancement New feature or request label Mar 1, 2022
@LucasLarson LucasLarson merged commit 6a9394f into main Mar 1, 2022
@LucasLarson LucasLarson deleted the case branch March 1, 2022 19:40
LucasLarson added a commit that referenced this pull request Mar 1, 2022
* main:
  [ci skip] Updating changelog
  replace `[ $1 = 𝑥 ]` with `case` statement (fix #15) (#20)

Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prefer a case statement instead of multiple [-tests on argument $1
1 participant