You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/tool/flutter_pub_upgrade.sh

15 lines
273 B

#!/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