Skip to content

Commit

Permalink
Fix a typo when doing forced destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Moore committed Mar 18, 2015
1 parent 28b41c3 commit 878f281
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion beadm
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,12 @@ EOF
esac

__be_exist ${POOL}/${BEDS}/${DESTROY}
if [ "${FORCE}" = "NO" ] ; then
if [ "${FORCE}" != "YES" ] ; then
echo "Are you sure you want to destroy '${DESTROY}'?"
echo -n "This action cannot be undone (y/[n]): "
read CHOICE
else
CHOICE="y"
fi

if [ "${BOOTFS}" = "${POOL}/${BEDS}/${DESTROY}" ]
Expand Down

0 comments on commit 878f281

Please sign in to comment.