From c6b3c8ad914c61a584d912e158594c85b5319bc7 Mon Sep 17 00:00:00 2001 From: ardu <1775956414@qq.com> Date: Tue, 27 Jan 2026 16:01:22 +0800 Subject: [PATCH] change img name ,add time --- scripts/gen_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen_image.sh b/scripts/gen_image.sh index fc9a195..000c834 100755 --- a/scripts/gen_image.sh +++ b/scripts/gen_image.sh @@ -49,7 +49,7 @@ parseargs() elif [ "x$1" == "x" ]; then shift elif [ "x$1" == "x-n" -o "x$1" == "x--name" ]; then - name=`echo $2` + name=`echo $2-$(date +%Y%m%d%H%M)` if [ "x${name:0-4}" == "x.img" ]; then name=${name::-4} fi