Minor fix with destroy message (rawthey).

This commit is contained in:
Slawomir Wojciech Wojtczak (vermaden) 2012-06-18 11:46:06 +02:00
parent 8179016b36
commit f8caebcc6c
1 changed files with 3 additions and 3 deletions

6
beadm
View File

@ -276,7 +276,7 @@ EOF
echo "Activated successfully" echo "Activated successfully"
;; ;;
(destroy) # ---------------------------------------------------------------- (destroy) # -----------------------------------------------------------------
if [ ${#} -ne 2 ] if [ ${#} -ne 2 ]
then then
__usage __usage
@ -311,12 +311,12 @@ EOF
zfs promote ${I} 2> /dev/null zfs promote ${I} 2> /dev/null
done done
fi fi
if ! [ "${ORIGINS}" = "-" ] if [ "${ORIGINS}" != "-" ]
then then
echo "${ORIGINS}" \ echo "${ORIGINS}" \
| while read I | while read I
do do
zfs destroy -r ${I} 2> /dev/null zfs destroy -r ${I} 2> /dev/null || true
done done
fi fi
fi fi