fix signature (#1555)
Co-authored-by: Andrei <andreikagit@users.noreply.github.com>
This commit is contained in:
parent
f411630928
commit
70d2e3c083
|
@ -10,7 +10,8 @@ echo "#define SIGNATURE_DATE $date" > tunerstudio/signature_${SHORT_BOARDNAME}.t
|
|||
echo "#define SIGNATURE_BOARD ${SHORT_BOARDNAME}" >> tunerstudio/signature_${SHORT_BOARDNAME}.txt
|
||||
|
||||
nanosec=$(date +"%N")
|
||||
nanosec=$((10#$nanosec)) # numbers starting from 0 can be treated as octal numbers
|
||||
# numbers starting from 0 can be treated as octal numbers
|
||||
[[ "$nanosec" =~ ^0*([0-9]+)$ ]] && nanosec="${BASH_REMATCH[1]}"
|
||||
hash=$(($nanosec % 2147483648))
|
||||
echo "#define SIGNATURE_HASH $hash" >> tunerstudio/signature_${SHORT_BOARDNAME}.txt
|
||||
|
||||
|
|
Loading…
Reference in New Issue