Blame Modules/Output/output.sh

Alain Reguera Delgado e051b3
#!/bin/bash
Alain Reguera Delgado e051b3
######################################################################
Alain Reguera Delgado e051b3
#
Alain Reguera Delgado e051b3
#   output.sh -- Selects how to output the greeting message, based on
Alain Reguera Delgado e051b3
#   the options you provided in the command-line.
Alain Reguera Delgado e051b3
#
Alain Reguera Delgado e051b3
#   Written by:
Alain Reguera Delgado e051b3
#   * Alain Reguera Delgado <al@centos.org.cu>, 2013
Alain Reguera Delgado e051b3
#
Alain Reguera Delgado e051b3
# Copyright (C) 2009-2013 The CentOS Artwork SIG
Alain Reguera Delgado e051b3
#
Alain Reguera Delgado e051b3
# This program is free software; you can redistribute it and/or modify
Alain Reguera Delgado e051b3
# it under the terms of the GNU General Public License as published by
Alain Reguera Delgado e051b3
# the Free Software Foundation; either version 2 of the License, or (at
Alain Reguera Delgado e051b3
# your option) any later version.
Alain Reguera Delgado e051b3
#
Alain Reguera Delgado e051b3
# This program is distributed in the hope that it will be useful, but
Alain Reguera Delgado e051b3
# WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado e051b3
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Alain Reguera Delgado e051b3
# General Public License for more details.
Alain Reguera Delgado e051b3
#
Alain Reguera Delgado e051b3
# You should have received a copy of the GNU General Public License
Alain Reguera Delgado e051b3
# along with this program; if not, write to the Free Software
Alain Reguera Delgado e051b3
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Alain Reguera Delgado e051b3
#
Alain Reguera Delgado e051b3
######################################################################
Alain Reguera Delgado e051b3
Alain Reguera Delgado e051b3
function output {
Alain Reguera Delgado e051b3
Alain Reguera Delgado e051b3
    local ACTION=''
Alain Reguera Delgado e051b3
Alain Reguera Delgado e051b3
    for ACTION in ${ACTIONS};do
Alain Reguera Delgado e051b3
        tcar_setModuleEnvironment -m "${ACTION}" -t 'child'
Alain Reguera Delgado e051b3
    done
Alain Reguera Delgado e051b3
Alain Reguera Delgado e051b3
}