Browse Source

Stop on failure

Ernesto Nicolás Carrea 5 years ago
parent
commit
90908e8243
1 changed files with 3 additions and 0 deletions
  1. 3 0
      bin/module/install.inc

+ 3 - 0
bin/module/install.inc

@@ -26,6 +26,9 @@ hestia_module_install() {
 
         if ! hestia module "$mod_provider" install "$@"; then
             echo "$mod_provider module installation failed"
+            if [ ! "$param_force" ]; then
+                exit 1
+            fi
         fi
 
         # Write installed module info