Skip to content

Commit

Permalink
Add missing 'fi'
Browse files Browse the repository at this point in the history
  • Loading branch information
moogle19 committed May 7, 2016
1 parent 9f63c15 commit ba9fa24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ioh-zfs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ __cloneguest() {
printf "\tclone <name> <clonename>\n"
exit 1
fi

local description="$(date | sed -e 's/ /_/g')"
local pool="$(zfs list -H -t volume | grep iohyve/$name | grep disk0 | cut -d '/' -f 1 | head -n1)"
# Check if guest exists
Expand Down Expand Up @@ -208,7 +209,7 @@ __cloneguest() {
zfs set iohyve:tap=tap$tap $pool/iohyve/$cname
zfs set iohyve:con=nmdm$con $pool/iohyve/$cname
fi

fi
else
echo "Not a valid guest name"
fi
Expand Down

0 comments on commit ba9fa24

Please sign in to comment.