add curl requirement

This commit is contained in:
neil 2015-12-26 21:04:08 +08:00
parent 6de7ef7cda
commit 246fb4b62e
1 changed files with 5 additions and 0 deletions

5
le.sh
View File

@ -507,6 +507,11 @@ renewAll() {
install() {
_initpath
if ! command -v "curl" ; then
_info "Please install curl first."
_info "sudo apt-get install curl"
return 1
fi
_info "Installing to $WORKING_DIR"
mkdir -p $WORKING_DIR/