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