mirror of
https://github.com/limosek/zaf.git
synced 2024-11-13 05:59:06 +01:00
Temp file auto deletion
This commit is contained in:
parent
ca4f170ca3
commit
658496e7cc
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user