Minor fix with destroy message (rawthey).
This commit is contained in:
parent
8179016b36
commit
f8caebcc6c
6
beadm
6
beadm
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue