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