diff options
author | P. J. McDermott <pjm@nac.net> | 2013-07-29 21:39:28 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-07-29 21:39:28 (EDT) |
commit | 218170b963ce12f42e7c74f195040761ff67dc44 (patch) | |
tree | 852a06c83aa2126bcb1654c30da11e5015e0a0a2 | |
parent | 0c8e97f7c63fb3de5037dd762008ba1e8e38c6a5 (diff) |
pro-archman: Move cleanup to a new function.
-rw-r--r-- | src/pro-archman.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh index 6501f0e..1f9628b 100644 --- a/src/pro-archman.sh +++ b/src/pro-archman.sh @@ -109,8 +109,7 @@ main() status=${?} fi - update_feeds - collect_garbage + fini return ${status} } @@ -156,4 +155,9 @@ get_conf() return 0 } +fini() +{ + update_feeds + collect_garbage +} main "${@}" |