change img name ,add time
This commit is contained in:
parent
d583d3a528
commit
c6b3c8ad91
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user