Commit bc89f25a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-sh-functions: add __epm_remove_from_tmp_files

parent cf12e226
......@@ -673,6 +673,16 @@ get_pkg_name_delimiter()
echo "-"
}
# don't remove <arg> on exit
__epm_remove_from_tmp_files()
{
keep="$1"
[ -r "$keep" ] || return 0
[ -n "$to_remove_pkg_files" ] || return 0
to_remove_pkg_files="$(echo "$to_remove_pkg_files" | sed -e "s|$keep||")"
}
# usage: trap "__epm_remove_tmp_files" EXIT
__epm_remove_tmp_files()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment