change img name ,add time

This commit is contained in:
ardu 2026-01-27 16:01:22 +08:00
parent d583d3a528
commit c6b3c8ad91

View File

@ -49,7 +49,7 @@ parseargs()
elif [ "x$1" == "x" ]; then elif [ "x$1" == "x" ]; then
shift shift
elif [ "x$1" == "x-n" -o "x$1" == "x--name" ]; then 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 if [ "x${name:0-4}" == "x.img" ]; then
name=${name::-4} name=${name::-4}
fi fi