Hide pub get output when updating flutter tool

Fixes https://github.com/flutter/flutter.github.io/issues/100
This commit is contained in:
Adam Barth 2015-11-23 19:05:34 -08:00
parent 1d0e193519
commit 764341d91a

View File

@ -17,7 +17,7 @@ DART=dart
REVISION=`(cd "$FLUTTER_ROOT"; git rev-parse HEAD)` REVISION=`(cd "$FLUTTER_ROOT"; git rev-parse HEAD)`
if [ ! -f "$SNAPSHOT_PATH" ] || [ ! -f "$STAMP_PATH" ] || [ `cat "$STAMP_PATH"` != "$REVISION" ] || [ "$FLUTTER_TOOLS_DIR/pubspec.yaml" -nt "$FLUTTER_TOOLS_DIR/pubspec.lock" ]; then if [ ! -f "$SNAPSHOT_PATH" ] || [ ! -f "$STAMP_PATH" ] || [ `cat "$STAMP_PATH"` != "$REVISION" ] || [ "$FLUTTER_TOOLS_DIR/pubspec.yaml" -nt "$FLUTTER_TOOLS_DIR/pubspec.lock" ]; then
echo Updating flutter tool... echo Updating flutter tool...
(cd "$FLUTTER_TOOLS_DIR"; pub get) (cd "$FLUTTER_TOOLS_DIR"; pub get > /dev/null)
$DART --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH" $DART --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH"
echo -n $REVISION > "$STAMP_PATH" echo -n $REVISION > "$STAMP_PATH"
fi fi