Move VM dirs under state/vms
This commit is contained in:
parent
75f03aeb04
commit
f8e7aedeb2
8 changed files with 11 additions and 10 deletions
|
|
@ -30,7 +30,7 @@ if ! ./run.sh; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
VM_DIR="$(find state -maxdepth 1 -type d -name 'vm-*' -printf '%T@ %p\n' 2>/dev/null | sort -nr | head -n 1 | awk '{print $2}')"
|
||||
VM_DIR="$(find state/vms -maxdepth 1 -mindepth 1 -type d -printf '%T@ %p\n' 2>/dev/null | sort -nr | head -n 1 | awk '{print $2}')"
|
||||
if [[ -z "$VM_DIR" ]]; then
|
||||
log "no VM state directory found"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue