Admin/init_components
changeset 48151 a80595d4f850
parent 48150 c97656ff4154
child 48152 f06697f776b0
--- a/Admin/init_components	Tue Jun 26 22:09:34 2012 +0200
+++ b/Admin/init_components	Tue Jun 26 22:23:28 2012 +0200
@@ -8,8 +8,12 @@
 function init_component_liberal
 {
   local LOCATION="$1"
-  [[ -d "${LOCATION}" ]] || echo "Warning: no component found in ${LOCATION}" && return
-  init_component "${LOCATION}"
+  if [[ -d "${LOCATION}" ]]
+  then
+    init_component "${LOCATION}"
+  else
+    echo "Warning: no component found in ${LOCATION}"
+  fi
 }
 
 while { unset REPLY; read -r; test "$?" = 0 -o -n "${REPLY}"; }