blob: fbe40b7f2acb072a869217be7f1bc8fb2ad334cd [file] [log] [blame] [edit]
#!/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
dart $REPO_DIR/tool/bin/repo_tool.dart "$@"