1 Star 0 Fork 0

coolan2013/flutter-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
get_packages.sh 719 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# Written by Nishant Srivastava
# Call as
# ./get_packages.sh
echo " ‣ Updating packages..."
# Iterate over each sub-directory inside the current directory
for DIR in ./*;
do
# Check if pubspec.yaml file exists inside the $DIR directory
# If it does then it is a Flutter project
if [ -f "$DIR/pubspec.yaml" ]; then
# Navigate into the sub directory
cd "$DIR"
# Run `flutter packages get` command inside the sub-directory i.e Flutter project
flutter packages get | grep "FAILED"
# Print the name of the sub directory when done
echo "$DIR" | awk -F'/' '{print $2}' | xargs -I{} echo " ↪️ {} ✔️"
# Go back to parent directory
cd ../
fi
done
echo " ✔️ Done."
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/coolan2013/flutter-examples.git
git@gitee.com:coolan2013/flutter-examples.git
coolan2013
flutter-examples
flutter-examples
develop

搜索帮助