Skip to content

Commit

Permalink
Automated Installation Enhance
Browse files Browse the repository at this point in the history
close #37
  • Loading branch information
chaogefeng committed Dec 13, 2019
1 parent 36ab0f3 commit cdd2eb0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/checkEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ check_cmd() {

need_cmd() {
if ! check_cmd "$1"; then
err "need '$1' (command not found)"
err "need '$1' (your linux command not found)"
fi
}
echo "<-----start to check used cmd---->"
echo "<-----start to check linux cmd:yum java mysql unzip expect telnet sed tar---->"
need_cmd yum
need_cmd java
need_cmd mysql
need_cmd unzip
need_cmd expect
need_cmd telnet
echo "<-----end to check used cmd------>"
need_cmd sed
need_cmd tar
need_cmd source
need_cmd hostname
echo "<-----end to check linux cmd:yum java mysql unzip expect telnet sed tar------>"

0 comments on commit cdd2eb0

Please sign in to comment.