movdump-keygen
movdump-keygen copied to clipboard
bash version fails with "value too great for base"
Issue:
mot@boo:~$ echo "$((13333 + (`date +%H` * 7113) + (`date +%M` * 77)))"
bash: 13333 + (09: value too great for base (error token is "09")
1 mot@boo:~$
Fixed version (note the underscore in %_H
and %_M
:
mot@boo:~$ echo "$((13333 + (`date +%_H` * 7113) + (`date +%_M` * 77)))"
78274
mot@boo:~$
I believe it only happens at hours less than 10, windows version fails at that times too btw