@@ -7,12 +7,6 @@ readonly REPO_DIR="$(dirname "$SCRIPT_DIR")"
77source " $SCRIPT_DIR /common.sh"
88source " $SCRIPT_DIR /nnbd_plugins.sh"
99
10- if [ " $( expr substr $( uname -s) 1 5) " == " MINGW" ]; then
11- PUB=pub.bat
12- else
13- PUB=pub
14- fi
15-
1610# Plugins that are excluded from this task.
1711ALL_EXCLUDED=(" " )
1812# Exclude nnbd plugins from stable.
@@ -49,18 +43,18 @@ PLUGIN_SHARDING=($PLUGIN_SHARDING)
4943
5044if [[ " ${BRANCH_NAME} " == " master" ]]; then
5145 echo " Running for all packages"
52- (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools " ${ACTIONS[@]} " --exclude=" $ALL_EXCLUDED " ${PLUGIN_SHARDING[@]} )
46+ (cd " $REPO_DIR " && plugin_tools " ${ACTIONS[@]} " --exclude=" $ALL_EXCLUDED " ${PLUGIN_SHARDING[@]} )
5347else
5448 # Sets CHANGED_PACKAGES
5549 check_changed_packages
5650
5751 if [[ " $CHANGED_PACKAGES " == " " ]]; then
5852 echo " No changes detected in packages."
5953 echo " Running for all packages"
60- (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools " ${ACTIONS[@]} " --exclude=" $ALL_EXCLUDED " ${PLUGIN_SHARDING[@]} )
54+ (cd " $REPO_DIR " && plugin_tools " ${ACTIONS[@]} " --exclude=" $ALL_EXCLUDED " ${PLUGIN_SHARDING[@]} )
6155 else
6256 echo running " ${ACTIONS[@]} "
63- (cd " $REPO_DIR " && $PUB global run flutter_plugin_tools " ${ACTIONS[@]} " --plugins=" $CHANGED_PACKAGES " --exclude=" $ALL_EXCLUDED " ${PLUGIN_SHARDING[@]} )
57+ (cd " $REPO_DIR " && plugin_tools " ${ACTIONS[@]} " --plugins=" $CHANGED_PACKAGES " --exclude=" $ALL_EXCLUDED " ${PLUGIN_SHARDING[@]} )
6458 echo " Running version check for changed packages"
6559 # TODO(egarciad): Enable this check once in master.
6660 # (cd "$REPO_DIR" && $PUB global run flutter_plugin_tools version-check --base_sha="$(get_branch_base_sha)")
0 commit comments