use rmdir

This commit is contained in:
Alex Polvi 2014-01-21 16:43:16 -08:00
parent 98d9fdb925
commit 3647ecb1cc

View File

@ -41,7 +41,7 @@ setup_prod_image() {
# clear them out explicitly, so this fails if something else gets dropped # clear them out explicitly, so this fails if something else gets dropped
# into xinetd.d # into xinetd.d
sudo rm ${root_fs_dir}/etc/xinetd.d/rsyncd sudo rm ${root_fs_dir}/etc/xinetd.d/rsyncd
sudo rm -r ${root_fs_dir}/etc/xinetd.d sudo rmdir ${root_fs_dir}/etc/xinetd.d
cleanup_mounts "${root_fs_dir}" cleanup_mounts "${root_fs_dir}"
trap - EXIT trap - EXIT