Browse Source

Remove self-call

Ernesto Nicolás Carrea 5 years ago
parent
commit
eb5d1431e2
2 changed files with 1 additions and 9 deletions
  1. 0 4
      bin/module/info.inc
  2. 1 5
      bin/module/list.inc

+ 0 - 4
bin/module/info.inc

@@ -21,7 +21,3 @@ hestia_module_info() {
         echo "Installed       : no"
     fi
 }
-
-# If this files is _not_ being sourced, act immediately
-# (otherise, wait for hestia cli to call the main function)
-[[ $_ == $0 ]] && hestia_module_info $@

+ 1 - 5
bin/module/list.inc

@@ -16,8 +16,4 @@ hestia_module_list() {
             fi
         fi
     done
-}
-
-# If this files is _not_ being sourced, act immediately
-# (otherise, wait for hestia cli to call the main function)
-[[ $_ == $0 ]] && hestia_module_list $@
+}