diff options
author | Jesus <heckyel@hyperbola.info> | 2024-05-27 01:11:45 +0800 |
---|---|---|
committer | Jesus <heckyel@hyperbola.info> | 2024-05-27 01:11:45 +0800 |
commit | 271ec196085fd05ada3e4c54e1ccecf306af8028 (patch) | |
tree | d8ae1bb1422577c3151665ed5d9bc728e05bd39f | |
parent | ae50a05447cb3f66a4c5a4111ef7275611e9dcee (diff) | |
download | hyperterm-271ec196085fd05ada3e4c54e1ccecf306af8028.tar.lz hyperterm-271ec196085fd05ada3e4c54e1ccecf306af8028.tar.xz hyperterm-271ec196085fd05ada3e4c54e1ccecf306af8028.zip |
install.sh: check requirements
-rw-r--r-- | install.sh | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -27,6 +27,17 @@ function msg_err() { esac } + +# Check Requirements +# ------------------- +programs=("wget" "curl" "git" "less") +for program in "${programs[@]}"; do + if ! command -v "$program" &>/dev/null; then + msg_err "$program no está instalado." \ + "$program is not installed" && exit 1 + fi +done + # Check URL's # ----------- function _which() { |