aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 05f783a..8658b63 100644
--- a/install.sh
+++ b/install.sh
@@ -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() {