diff options
Diffstat (limited to 'install.sh')
-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() { |