1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Scripting flutter pub upgrade (#242)

This commit is contained in:
Brett Morgan
2020-01-16 10:06:33 +10:00
committed by GitHub
parent c595b0a498
commit 13125bc435
7 changed files with 27 additions and 13 deletions

14
tool/flutter_pub_upgrade.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -e
scriptDirectory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
for file in `find "${scriptDirectory}/.." -name pubspec.yaml`
do
(
cd `dirname $file`
echo "Updating `pwd`"
flutter pub upgrade
)
done