7 lines
197 B
Bash
7 lines
197 B
Bash
latestRockyDiskPath=$(find "$VM_DISK_OUTPUT_DIR" -type f -printf '%T@ %p\n' |
|
|
sort -rn |
|
|
head -1 |
|
|
sed 's/^[0-9.]\+ //' |
|
|
xargs readlink -f)
|
|
|
|
export latestRockyDiskPath=$latestRockyDiskPath |