From 658496e7ccc71c9b333ebb07627bf98fd0c929ba Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Wed, 4 May 2016 16:20:23 +0200 Subject: [PATCH] Temp file auto deletion --- lib/ctrl.lib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ctrl.lib.sh b/lib/ctrl.lib.sh index 256dfff..306c322 100644 --- a/lib/ctrl.lib.sh +++ b/lib/ctrl.lib.sh @@ -240,11 +240,13 @@ zaf_ctrl_generate_cfg() { ) >${ZAF_TMP_DIR}/${iscript}.sh; [ -z "$3" ] && zaf_install_bin ${ZAF_TMP_DIR}/${iscript}.sh ${ZAF_PLUGINS_DIR}/$2/ printf "%s" "UserParameter=$ikey,${env}${preload}${zafparams}${cache}${lock}${ZAF_PLUGINS_DIR}/$2/${iscript}.sh ${args}"; echo + rm -f ${ZAF_TMP_DIR}/${iscript}.sh continue; fi zaf_err "Item $i declared in control file but has no Cmd, Function or Script!" done ) || zaf_err "Error during zaf_ctrl_generate_cfg" + rm -f $tmpfile }