#!/bin/bash # Navigate to the project root (assuming tools is one level below root) cd "$(dirname "$0")/.." # Find all pubspec.yaml files, print their directories, and run flutter pub get #find . -name "pubspec.yaml" -exec sh -c 'echo "Running flutter pub get in $(dirname {}) 🙂🙂🙂🙂🙂"; cd $(dirname {}) ; flutter pub get' \; find . -name "pubspec.yaml" -exec sh -c 'echo "Running flutter pub get in $(dirname {}) ⬆️🆙🆙🆙⬆️"; cd $(dirname {}) ; flutter pub upgrade' \;