Cyfrin / aderyn

Aderyn 🦜 Rust-based Solidity AST analyzer.
https://docs.cyfrin.io/
GNU General Public License v2.0
414 stars 62 forks source link

`cyrfinup/install` doesn't work with non-interactive zsh shells #778

Open 0ximmeas opened 1 week ago

0ximmeas commented 1 week ago

Describe the bug .zshrc is only sourced in interactive shells. This makes it difficult to use the install script and cyfrinup in non-interactive shells, for example, Dockerfiles. .zshenv is sourced in all shells hence a better file to use.

To Reproduce Add the following to a Dockerfile and run it:

RUN curl -L https://raw.githubusercontent.com/Cyfrin/aderyn/dev/cyfrinup/install | zsh
RUN cyrfinup

Expected behavior For cyfrinup to be sourced in non-interactive zsh shells.

Screenshots n/a

Desktop: n/a

Additional context As a reference, this is the same way that foundryup is sourced.