diff --git a/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash b/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash index fdf8013..8760c30 100644 --- a/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash +++ b/ansible/roles/bhyve/files/bhyve_netgraph_bridge.bash @@ -34,6 +34,13 @@ function main { fi } +function die { + local status_code="$1" + shift + (>&2 echo "${@}") + exit "$status_code" +} + function create_disk { zfs_path="$1" mount_path="$2" @@ -43,6 +50,7 @@ function create_disk { tee "${mount_path}/settings" </dev/null 2>&1 }