install.sh: check requirements
This commit is contained in:
parent
ae50a05447
commit
271ec19608
11
install.sh
11
install.sh
@ -27,6 +27,17 @@ function msg_err() {
|
|||||||
esac
|
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
|
# Check URL's
|
||||||
# -----------
|
# -----------
|
||||||
function _which() {
|
function _which() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user