aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvm-creator2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-creator b/kvm-creator
index 2a7bb2d..eb7fb96 100755
--- a/kvm-creator
+++ b/kvm-creator
@@ -13,7 +13,7 @@ VG="$2"
SIZE="${3:-3G}"
RAM="${4:-512}"
-[ ! -d /etc/sv/kvm ] && mkdir /etc/sv/kvm
+[ "$CMD" == "create" ] && [ ! -d /etc/sv/kvm ] && mkdir /etc/sv/kvm
ls /etc/sv/kvm/* &> /dev/null
if [ "$?" -eq 0 ]; then