summaryrefslogtreecommitdiffstats
path: root/lib/cmd
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-11 11:35:06 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-11 11:46:36 (EDT)
commitc9b56e3a4db6bf8c4595ca5ea161289678ea2865 (patch)
tree5553e916e26ecc6b5881fccad0cb383ace96fd2d /lib/cmd
parent85645cdb199ac34012b1dfd35a505fea446b32c4 (diff)
process-incoming: Remove processed files.
Diffstat (limited to 'lib/cmd')
-rw-r--r--lib/cmd/process-incoming.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/cmd/process-incoming.sh b/lib/cmd/process-incoming.sh
index 0d0b155..52f7480 100644
--- a/lib/cmd/process-incoming.sh
+++ b/lib/cmd/process-incoming.sh
@@ -24,6 +24,7 @@ use include
cmd_process_incoming_main()
{
local changes=
+ local file=
info "$(get_msg 'cmd_process_incoming_processing')"
@@ -31,6 +32,12 @@ cmd_process_incoming_main()
if [ ! -f "${changes}" ]; then
continue
fi
- include_changes "${changes}"
+ for file in $(include_changes "${changes}"); do
+ if [ ! -f "${file}" ]; then
+ continue
+ fi
+ rm -f "${file}"
+ done
+ rm -f "${changes}"
done
}