Admin/init_components
changeset 48151 a80595d4f850
parent 48150 c97656ff4154
child 48152 f06697f776b0
equal deleted inserted replaced
48150:c97656ff4154 48151:a80595d4f850
     6 # as specified in the Admin directory
     6 # as specified in the Admin directory
     7 
     7 
     8 function init_component_liberal
     8 function init_component_liberal
     9 {
     9 {
    10   local LOCATION="$1"
    10   local LOCATION="$1"
    11   [[ -d "${LOCATION}" ]] || echo "Warning: no component found in ${LOCATION}" && return
    11   if [[ -d "${LOCATION}" ]]
    12   init_component "${LOCATION}"
    12   then
       
    13     init_component "${LOCATION}"
       
    14   else
       
    15     echo "Warning: no component found in ${LOCATION}"
       
    16   fi
    13 }
    17 }
    14 
    18 
    15 while { unset REPLY; read -r; test "$?" = 0 -o -n "${REPLY}"; }
    19 while { unset REPLY; read -r; test "$?" = 0 -o -n "${REPLY}"; }
    16 do
    20 do
    17   case "${REPLY}" in
    21   case "${REPLY}" in