mirror of
https://github.com/RROrg/rr.git
synced 2025-12-16 00:59:33 +08:00
Compare commits
No commits in common. "15e88c0b382fccaa52ce429ee35b6fce004823a0" and "8e7f50c2e504439bbb314c18a7b49c942eb5585c" have entirely different histories.
15e88c0b38
...
8e7f50c2e5
@ -139,14 +139,7 @@ fi
|
||||
echo "Creating VM with RR ... "
|
||||
|
||||
# 获取可用的 VMID
|
||||
last_vmid=$(qm list | awk 'NR>1{print$1}' | sort -n | tail -1 2>/dev/null)
|
||||
if [ -z "$last_vmid" ]; then
|
||||
# 如果 last_vmid 是空字符串,说明没有VM,设置一个起始ID
|
||||
VMID=100
|
||||
else
|
||||
# 否则,在最后一个ID的基础上加1
|
||||
VMID=$((last_vmid + 1))
|
||||
fi
|
||||
VMID="$(($(qm list | awk 'NR>1{print $1}' | sort -n | tail -1 2>/dev/null || echo 99) + 1))"
|
||||
ARGS=""
|
||||
SATAIDX=0
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user