-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Linting scripts with shellcheck #11
Comments
Looking at this line, you may also want to prepend, instead of appending, as the system would then look at the Nix binaries first:
|
Here, we actually want the single quotes, as we really want to grep for this exact string without expanding it. But having shellcheck is probably a good idea anyway. For the prepending part: I am unsure if this is a good idea. The way it is, it will first take a natively installed nix binary, if available and then fallback to the binary that was installed by using the setup.sh script. What are your thoughts on this? |
I would assume that a user installation of nix has priority over the system installation. If the user needed to install a different version locally, there was probably a reason, such as a problem or missing feature of the system installation. |
You may want to try shellcheck. For
setup.sh
, it only gives two issues, but it can be quite helpful in other cases:The text was updated successfully, but these errors were encountered: