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

fix(fish): clean up variables #350

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Conversation

folliehiyuki
Copy link
Contributor

Check list

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation

Description

  • use status dirname builtin to save 1 dirname call
  • use builtin test function instead of [ syntax
  • use local scoping for INSTALL_DIR variable (and make it lowercase to indicate such change)

Ref: https://fishshell.com/docs/current/cmds/test.html

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Breaking change
  • Documentation change

Test environment

  • Shell
    • bash
    • zsh
    • fish
  • OS
    • Linux
    • Mac OS X
    • Windows
    • Others:

* use `status dirname` builtin to save 1 dirname call
* use builtin test function instead of [ command
* use local scoping for INSTALL_DIR variable (and make it lowercase to
  indicate such change)

Ref: https://fishshell.com/docs/current/cmds/test.html
@cjappl cjappl merged commit 2b58a2e into wfxr:master Feb 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants