"TMP_DIR: Ok"
This commit is contained in:
parent
697589fe39
commit
dcb5607846
@ -98,7 +98,6 @@ case "${L_Cmd}" in
|
|||||||
fct_message -debug 0 "<lib:fct_erreur> Nettoyage des fichiers temporaires de la session ${SH_SESSION_ID}"
|
fct_message -debug 0 "<lib:fct_erreur> Nettoyage des fichiers temporaires de la session ${SH_SESSION_ID}"
|
||||||
if [ -n "${NC_EXPL_TMP}" -a -n "${SH_SESSION_ID}" -a "${NC_EXPL_TMP}" != "/" -a "${NC_EXPL_TMP}" != "." ]
|
if [ -n "${NC_EXPL_TMP}" -a -n "${SH_SESSION_ID}" -a "${NC_EXPL_TMP}" != "/" -a "${NC_EXPL_TMP}" != "." ]
|
||||||
then
|
then
|
||||||
fct_message "Supression du repertoire temporaire"
|
|
||||||
rm -f "${NC_EXPL_TMP}/*${SH_SESSION_ID}*"
|
rm -f "${NC_EXPL_TMP}/*${SH_SESSION_ID}*"
|
||||||
rm -Rf ${SH_TMP_DIR}
|
rm -Rf ${SH_TMP_DIR}
|
||||||
else
|
else
|
||||||
|
@ -54,14 +54,12 @@
|
|||||||
|
|
||||||
function fct_mk_tmp_dir
|
function fct_mk_tmp_dir
|
||||||
{
|
{
|
||||||
fct_message "Creation du repertoire temporaire ${SH_TMP_DIR}"
|
|
||||||
mkdir -p ${SH_TMP_DIR}
|
mkdir -p ${SH_TMP_DIR}
|
||||||
RET_VAL=$?
|
RET_VAL=$?
|
||||||
if [ ! ${RET_VAL} -eq 0 ]; then
|
if [ ! ${RET_VAL} -eq 0 ]; then
|
||||||
fct_message "Erreur lors de la creation du repertoire temporaire" -color rouge
|
fct_message "Erreur lors de la creation du repertoire temporaire" -color rouge
|
||||||
fct_erreur 254
|
fct_erreur 254
|
||||||
fi
|
fi
|
||||||
ls ${SH_TMP_DIR}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fct_params
|
function fct_params
|
||||||
|
Loading…
Reference in New Issue
Block a user