Browse Source

add curl requirement

neil 9 years ago
parent
commit
246fb4b62e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      le.sh

+ 5 - 0
le.sh

@@ -507,6 +507,11 @@ renewAll() {
 
 
 install() {
 install() {
   _initpath
   _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"
   _info "Installing to $WORKING_DIR"
   
   
   mkdir -p $WORKING_DIR/
   mkdir -p $WORKING_DIR/