1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/tool/flutter_pub_upgrade.sh
2020-05-13 09:18:26 +10:00

16 lines
302 B
Bash
Executable File

#!/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
flutter pub outdated
)
done