Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

refactor: use more readable empty-string tests #880

Merged
merged 1 commit into from
May 3, 2024

Commits on May 3, 2024

  1. refactor: use more readable empty-string tests

    replace:
    - `test -n "${variable}"` with `test "${variable}" != ''`, and
    - `test -z "${variable}"` with `test "${variable}" = ''`
    
    https://github.com/anordal/shellharden/blob/35411af8d466fb8b75f9769c7bf4bcc0cb2a2920/how_to_do_things_safely_in_bash.md#are-empty-string-comparisons-any-special
    
    Signed-off-by: Lucas Larson <[email protected]>
    LucasLarson committed May 3, 2024
    Configuration menu
    Copy the full SHA
    dc5be00 View commit details
    Browse the repository at this point in the history