summaryrefslogtreecommitdiffstats
path: root/lib/cmd/remove.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-12 17:08:10 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-12 17:08:10 (EDT)
commit4b8def7a2f4b4df399762540acf2428146331a91 (patch)
treedd2ed06b35692a09605028fef82b677c769346a8 /lib/cmd/remove.sh
parent22b003b01a7ed817464b2fc0b776f2c3fb0cb65c (diff)
Move init() and fini() calls into commands.
Now locking really isn't done for help and version commands.
Diffstat (limited to 'lib/cmd/remove.sh')
-rw-r--r--lib/cmd/remove.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cmd/remove.sh b/lib/cmd/remove.sh
index 614fab4..a5dd1a0 100644
--- a/lib/cmd/remove.sh
+++ b/lib/cmd/remove.sh
@@ -28,6 +28,8 @@ cmd_remove_main()
local chan=
local dist=
+ init
+
chan="${suite%/*}"
dist="${suite##*/}"
if [ "x${chan}" = "x${suite}" ]; then
@@ -37,5 +39,7 @@ cmd_remove_main()
info "$(get_msg 'cmd_remove_removing')" "${source}" "${chan}" "${dist}"
remove_source_from_suite "${chan}" "${dist}" "${source}"
+ fini
+
return 0
}