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

Fresh Update runs through freshrc twice #165

Open
quintrino opened this issue Dec 11, 2019 · 1 comment
Open

Fresh Update runs through freshrc twice #165

quintrino opened this issue Dec 11, 2019 · 1 comment

Comments

@quintrino
Copy link

I currently have an if block in my freshrc which echos Static ASDF not requested if the criteria is met.

When I run fresh install, this echoes once, when I run fresh update it echoes twice.

Is this a bug? Echoing something twice doesn't have any side effects, but if it's running commands twice I could see it causing bugs.

@jasoncodes
Copy link
Member

The freshrc file is intended to be a configuration file and immutable (preferably without any side affects). We recommend defining a fresh_after_build function in your freshrc which will be automatically called during the build process but not at other times.

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

No branches or pull requests

2 participants