if ! snap run --shell image-garden -c "snapctl is-connected kvm";then
echo"Please connect the kvm interface to image-garden" >&2
echo"snap connect image-garden:kvm" >&2
exit1
fi
SPREAD=image-garden.spread
else
SPREAD=spread
iftest -z "$(command -v spread)";then
echo"You need to install spread from https://github.com/snapcore/spread with the Go compiler and the command: go install github.com/snapcore/spread/cmd/spread@latest" >&2