bootc-base-image-build-mirror/scripts/utils/getLatestRockyDiskPath.sh
2024-08-11 09:09:04 +00:00

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