From cf0af8d60b9f974d0831dc2d336c261ce5f89ebf Mon Sep 17 00:00:00 2001 From: Karin Berg Date: Fri, 10 Jan 2025 17:49:02 +0100 Subject: [PATCH] debug --- codemagic.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/codemagic.yaml b/codemagic.yaml index 00fd945bb..fdfadca7a 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -16,7 +16,13 @@ definitions: # Verify Flutter version echo "Verify Flutter version..." REQUIRED_VERSION=$(grep flutter .tool-versions | awk '{print $2}') - CURRENT_VERSION=$(flutter --version | grep -m 1 "^Flutter" | awk '{print $2}') + echo "REQUIRED_VERSION: $REQUIRED_VERSION" + + FLUTTER_LINE=$(flutter --version | grep -m 1 "^Flutter") + echo "FLUTTER_LINE: $FLUTTER_LINE" + CURRENT_VERSION=$($FLUTTER_LINE | awk '{print $2}') + echo "CURRENT_VERSION: $CURRENT_VERSION" + if [ "$CURRENT_VERSION" != "$REQUIRED_VERSION" ]; then echo "Error: Flutter version $REQUIRED_VERSION is required (current: $CURRENT_VERSION)" exit 1