Public feed #892383

Stuff

public text v1 · immutable
Raw Edit
·published 2008-02-05 11:01 UTC
rendered paste body
#!/bin/bash

touch /tmp/dialogtmp && FICHTMP=/tmp/dialogtmp
trap "rm -f $FICHTMP" 0 1 2 3 5 15


function  build_iso() {
        PLOP=1
        until [ "${PLOP}" != "1" ]
        do
                foobar
        done
}

function foobar () {
        DIALOG=${DIALOG=dialog}

        $DIALOG --backtitle "Kickstart Generator" --clear \
                --inputbox "Entrer le chemin vers le répertoire contenant les données du DVD :" 16 60 2> ${FICHTMP}

        VALRET=$?

        DATA_DIR=`cat ${FICHTMP}`

        if [[ -d ${DATA_DIR} ]] ; then

                cd ${DATA_DIR}
                pwd
                PLOP=0
        else
                PLOP=1
        fi
        return ${PLOP}
}

build_iso