From d9408e563f26dcd8495e0e4a27485d5fd889814a Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Mon, 26 Oct 2009 15:02:31 -0400 Subject: When creating, issue set -e after validating, not before, because validation requires checking commands that may return false. --- kvm-creator | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvm-creator') diff --git a/kvm-creator b/kvm-creator index 8cb34fc..aa7fd54 100755 --- a/kvm-creator +++ b/kvm-creator @@ -67,8 +67,8 @@ validate() { create() { - set -e validate + set -e adduser "$NAME" --disabled-password --gecos "$NAME KVM user,,," addgroup "$NAME" kvm for dir in .ssh vms "vms/$NAME"; do -- cgit v1.2.3