]> gitweb.fluxo.info Git - kvm-manager.git/commitdiff
When creating, issue set -e after validating, not before, because
authorJamie McClelland <jm@mayfirst.org>
Mon, 26 Oct 2009 19:02:31 +0000 (15:02 -0400)
committerJamie McClelland <jm@mayfirst.org>
Mon, 26 Oct 2009 19:02:31 +0000 (15:02 -0400)
validation requires checking commands that may return false.

kvm-creator

index 8cb34fc881a8d11569882d1f555cf0ab747a48ff..aa7fd54f3c71adf0d00766aa3f2af9326c1d0002 100755 (executable)
@@ -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