upload ini from firmware build #4456

This commit is contained in:
rusefillc 2022-08-18 09:45:46 -04:00
parent 42fb3e2a4e
commit 0a4f5b1d1a
1 changed files with 7 additions and 2 deletions

View File

@ -19,8 +19,13 @@ pwd
echo -e "\nUploading .ini files" echo -e "\nUploading .ini files"
ls -l . ls -l .
echo "Processing file $1:" if [ "$1" = "all" ]; then
sig=$(grep "^ *signature *=" $1 | cut -f2 -d "=") echo "Processing default 'all' file"
sig=$(grep "^ *signature *=" rusefi.ini | cut -f2 -d "=")
else
echo "Processing file $1:"
sig=$(grep "^ *signature *=" $1 | cut -f2 -d "=")
fi
if [ ! -z "$sig" -a "$sig" != " " ]; then if [ ! -z "$sig" -a "$sig" != " " ]; then
echo "* found signature: $sig" echo "* found signature: $sig"
if [[ "$sig" =~ rusEFI.*([0-9]{4})\.([0-9]{2})\.([0-9]{2})\.([a-zA-Z0-9_-]+)\.([0-9]+) ]]; then if [[ "$sig" =~ rusEFI.*([0-9]{4})\.([0-9]{2})\.([0-9]{2})\.([a-zA-Z0-9_-]+)\.([0-9]+) ]]; then