neil / rpms / anaconda

Forked from rpms/anaconda a year ago
Clone
Michel Alexandre Salim 1a1252
#!/bin/sh -x
Michel Alexandre Salim 1a1252
Michel Alexandre Salim 1a1252
ls /tmp
Michel Alexandre Salim 1a1252
Michel Alexandre Salim 1a1252
LOG_DIR=/tmp
Michel Alexandre Salim 1a1252
Michel Alexandre Salim 1a1252
cd ${LOG_DIR}
Michel Alexandre Salim 1a1252
KS_SCRIPT_LOGS=$(ls ks-script-*.log)
Michel Alexandre Salim 1a1252
cd -
Michel Alexandre Salim 1a1252
Michel Alexandre Salim 1a1252
ANACONDA_LOGS="anaconda.log storage.log packaging.log program.log dbus.log dnf.librepo.log ${KS_SCRIPT_LOGS}"
Michel Alexandre Salim 1a1252
Michel Alexandre Salim 1a1252
for log in ${ANACONDA_LOGS} ; do
Michel Alexandre Salim 1a1252
    LOG_PATH=${LOG_DIR}/${log}
Michel Alexandre Salim 1a1252
    if [ -f ${LOG_PATH} ]; then
Michel Alexandre Salim 1a1252
        echo "----------------------- Dumping log file $LOG_PATH:"
Michel Alexandre Salim 1a1252
        cat $LOG_PATH
Michel Alexandre Salim 1a1252
        # clear for the following test
Michel Alexandre Salim 1a1252
        rm $LOG_PATH
Michel Alexandre Salim 1a1252
    fi
Michel Alexandre Salim 1a1252
done