Changes to Config File Logic
This commit is contained in:
parent
afb0c0ae82
commit
059260d0fd
@ -719,7 +719,7 @@ config_file() {
|
|||||||
|
|
||||||
elif [[ "$CT_ID" =~ ^[0-9]+$ ]]; then
|
elif [[ "$CT_ID" =~ ^[0-9]+$ ]]; then
|
||||||
echo "Befor LIST_OF_IDS"
|
echo "Befor LIST_OF_IDS"
|
||||||
pvesh get /cluster/resources --type vm --output-format json | grep -oP '"vmid":\s*\K\d+'
|
pvesh get /cluster/resources --type vm --output-format json
|
||||||
LIST_OF_IDS=$(pvesh get /cluster/resources --type vm --output-format json | grep -oP '"vmid":\s*\K\d+')
|
LIST_OF_IDS=$(pvesh get /cluster/resources --type vm --output-format json | grep -oP '"vmid":\s*\K\d+')
|
||||||
if [[ -n "$LIST_OF_IDS" ]]; then
|
if [[ -n "$LIST_OF_IDS" ]]; then
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user