From f8caebcc6c5dc35bcee5498cc942c92d62826803 Mon Sep 17 00:00:00 2001 From: "Slawomir Wojciech Wojtczak (vermaden)" Date: Mon, 18 Jun 2012 11:46:06 +0200 Subject: [PATCH] Minor fix with destroy message (rawthey). --- beadm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beadm b/beadm index 9896081..79d0faf 100755 --- a/beadm +++ b/beadm @@ -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