Last active
July 25, 2023 14:37
-
-
Save gmolveau/9d459a2572f467bee0e98435d4907c04 to your computer and use it in GitHub Desktop.
bash script - list all missing dependencies and exit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inspiration : https://stackoverflow.com/a/52552095 | |
deps=0 | |
for app in awk wget; do | |
! command -v ${app} &> /dev/null && echo "$app is not installed" && deps=1 | |
done | |
[[ $deps -ne 0 ]] && exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment