Skip to content

Instantly share code, notes, and snippets.

@error10
error10 / virt-helpers.sh
Last active September 16, 2020 20:10
Bash helper functions for mangling libvirt virtual machines
#!/usr/bin/env bash
# Check whether a named virtual machine exists.
#
# Arguments:
# 1: virtual machine name given by virsh
#
# Returns:
# 0 if virtual machine exists
# 1 if virtual machine does not exist
### Keybase proof
I hereby claim:
* I am error10 on github.
* I am error10 (https://keybase.io/error10) on keybase.
* I have a public key ASDLv0ZzWIW1MecYnBvgn3p0LpFL5FxqpK4g4yFPyhKl_Qo
To claim this, I am signing this object: