fresh icon indicating copy to clipboard operation
fresh copied to clipboard

Fresh Update runs through freshrc twice

Open quintrino opened this issue 4 years ago • 1 comments

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.

quintrino avatar Dec 11 '19 00:12 quintrino

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.

jasoncodes avatar Dec 11 '19 01:12 jasoncodes