Permalink
Browse files

Put zfs destroy commands in quotes, to get oddly named ports, such as

something with a ++ in it
  • Loading branch information...
kmoore134 committed Nov 29, 2013
1 parent 0297be2 commit 50b9681c5862794cd27407a2dd7e4196da3dfe5d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src-sh/pbi-manager10/pbi-manager
@@ -5943,7 +5943,7 @@ check_zfs_ab_destroy()
umount -f ${PBI_CHROOTDIR}/dev >/dev/null 2>/dev/null
sync
sleep 3
- zfs destroy -r ${zDir}
+ zfs destroy -r "${zDir}"
rmdir "${zDir}" >/dev/null 2>/dev/null
fi
fi
@@ -7128,7 +7128,7 @@ chroot_make_cleanup() {
sleep 1
# If we are running as a result of pbi_autobuild, let it do the ZFS cleanup
if [ -z "${PBI_AB_TMPDIR}" ] ; then
- zfs destroy -r ${tank}${PBI_CHROOTDIR}
+ zfs destroy -r "${tank}${PBI_CHROOTDIR}"
rmdir "${PBI_CHROOTDIR}" >/dev/null 2>/dev/null
fi
return

0 comments on commit 50b9681

Please sign in to comment.