Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
KarinBerg committed Jan 10, 2025
1 parent 19f78f7 commit cf0af8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion codemagic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf0af8d

Please sign in to comment.