Fix overly zealous double-zpool check
This commit is contained in:
parent
4fbd39ea1e
commit
059a0d6bae
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ ZPOOL=zroot
|
|||
|
||||
ONE_CONTEXT_PKG_URL="https://github.com/OpenNebula/addon-context-linux/releases/download/v6.2.0/one-context-6.2.0_1.txz"
|
||||
|
||||
if [ "$(zpool list -Ho name $ZPOOL)" = $ZPOOL ]; then
|
||||
if [ "$(zpool list -Ho name $ZPOOL || true)" = $ZPOOL ]; then
|
||||
echo "The pool $ZPOOL is already imported." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue