You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by meleu December 24, 2024
First of all: WOW! 😮
As bash-lover for more than 2 decades, I'm amazed by this project! This is a life-changing tool! Thanks for sharing it with us! ❤️
Now the feature idea:
When the script has more than one dependency and the user doesn't have any of them installed, it is a frustrating experience to see only one "missing dependency" notification at each time you try to run the script.
It would be nice if the dependency checking could report all missing dependencies in a single run.
I'm sharing here what I usually do (in a hope it can give you some ideas):
# declare the dependencies in an arrayreadonly DEPENDENCIES=(dep1 dep2 depN)
# checkDependencies:# prints the missing dependency# finishes with failure status when a missing dependency is foundcheckDependencies() {
local dep
local failure=false
fordepin"${DEPENDENCIES[@]}";docommand -v "$dep"> /dev/null &&continueecho"[ERROR]: '$dep' is not in your PATH">&2
failure=true
done
[[ "$failure"=='false' ]]
}
```</div>
The text was updated successfully, but these errors were encountered:
Discussed in #580
Originally posted by meleu December 24, 2024
First of all: WOW! 😮
As bash-lover for more than 2 decades, I'm amazed by this project! This is a life-changing tool! Thanks for sharing it with us! ❤️
Now the feature idea:
When the script has more than one dependency and the user doesn't have any of them installed, it is a frustrating experience to see only one "missing dependency" notification at each time you try to run the script.
It would be nice if the dependency checking could report all missing dependencies in a single run.
I'm sharing here what I usually do (in a hope it can give you some ideas):
The text was updated successfully, but these errors were encountered: