From 925fe9734c86038a68fa7d1704a1c6f38b3d46bd Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 1 Nov 2022 21:35:47 -0400 Subject: [PATCH] cute special case --- firmware/tunerstudio/upload_ini.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/tunerstudio/upload_ini.sh b/firmware/tunerstudio/upload_ini.sh index bd9d4240da..2b7e526493 100755 --- a/firmware/tunerstudio/upload_ini.sh +++ b/firmware/tunerstudio/upload_ini.sh @@ -19,7 +19,12 @@ pwd echo -e "\nUploading .ini files" ls -l . -echo "[upload_ini] Looking for signature in $fileName..." +if [ "$fileName" == "no" ]; then + echo "[upload_ini] signature file not needed" + exit 0 +fi + +echo "[upload_ini] Looking for signature in [$fileName]..." sig=$(grep "^\s*signature\s*=" $fileName | cut -f2 -d "=") if [ ! -z "$sig" -a "$sig" != " " ]; then echo "* found signature: $sig"