Files
rasadyar_application/tools/pubspecAll.sh
2025-04-28 12:29:13 +03:30

9 lines
499 B
Bash

#!/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' \;