Skip to content

Commit

Permalink
Reuse foreach_module for upgrade too
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanmantel committed May 24, 2024
1 parent 463aa12 commit a5225f3
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions tool/upgrade.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
#!/bin/bash

folders=(
example
floor
floor_annotation
floor_common
floor_ffi
floor_generator
)
# Make foreach_module script executable, in case it isn't yet
chmod u+x foreach_module.sh

cd ..

for folder in "${folders[@]}"
do
cd "$folder" || exit;
flutter packages pub upgrade
cd ..
done
# Run flutter packages pub upgrade on every module
./foreach_module.sh 'flutter packages pub upgrade'

0 comments on commit a5225f3

Please sign in to comment.