base-image-build/scripts/utils/getLatestRockyDiskPath.sh

7 lines
197 B
Bash
Raw Normal View History

2024-08-11 09:09:04 +00:00
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