#!/bin/bash | |
set -e | |
REPO_DIR=$(dirname $(dirname $BASH_SOURCE)) | |
# Potentially run flutter pub get | |
if [[ "$REPO_DIR/tool/pubspec.yaml" -nt "$REPO_DIR/tool/.packages" ]]; then | |
echo Running flutter pub get... | |
(cd $REPO_DIR/tool; flutter pub get) | |
fi | |
$REPO_DIR/flutter-sdk/bin/dart $REPO_DIR/tool/bin/repo_tool.dart "$@" |