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

Misc features and fixes #8

Merged
merged 6 commits into from
Nov 7, 2022
Merged

Misc features and fixes #8

merged 6 commits into from
Nov 7, 2022

Conversation

Granddave
Copy link
Member

Some cleanup of the variables.

I mentioned in some commit that we might want to change from using #!/bin/sh to either bash or zsh since some language features that we currently use aren't POSIX compliant. Maybe go for Zsh?

@Granddave Granddave changed the title Variable cleanup Misc features and fixes Nov 7, 2022
This lowers the risk of typos as well as exposing the plugin directory
to the user via the environment variable.

The `ZAP_` prefix could be used for other variables as well in the
future.
We don't want the internal variables to be available outside of the
function scope, so let's mark them as local.

Note: We might want to change the shebang to point to bash or zsh
instead of plain sh since some of the things in this script isn't POSIX
compliant.
Grep complained that the .zshrc file didn't exist when I tried to
run the installer in a clean Docker environment. The `touch` makes sure
to create the file if it doesn't already exist.
@Granddave
Copy link
Member Author

Rebased on top of master

@Granddave Granddave merged commit d5961c4 into master Nov 7, 2022
@Granddave Granddave deleted the variable-cleanup branch November 7, 2022 17:51
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.

None yet

2 participants