diff --git a/vmcreate.sh b/vmcreate.sh index 59bcb2b..df83201 100644 --- a/vmcreate.sh +++ b/vmcreate.sh @@ -237,7 +237,7 @@ do ip=$(echo -n "$line" | cut -d ';' -f 1) vmid=$(get_vmid "$ip") snippet= - if qm status "$vmid" > /dev/null; then + if qm status "$vmid" &>/dev/null; then echo "VM $vmid exists. Aborting" exit 7 elif [[ -f "$snippet" ]]; then