From 73449f80bb091815e0ad3798efec08fe16b1cf9e Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 17 Feb 2016 15:11:02 -0800 Subject: [PATCH] Teach flutter to run from a relative path Previously we were trying to run pub from the wrong working directory. --- bin/flutter | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/flutter b/bin/flutter index 2c28b5586d3..86e289887e5 100755 --- a/bin/flutter +++ b/bin/flutter @@ -20,10 +20,9 @@ if [ ! -f "$SNAPSHOT_PATH" ] || [ ! -f "$STAMP_PATH" ] || [ `cat "$STAMP_PATH"` echo Building flutter tool... FLUTTER_DIR="$FLUTTER_ROOT/packages/flutter" - PUB="$DART_SDK_PATH/bin/pub" - (cd "$FLUTTER_TOOLS_DIR"; "$PUB" get > /dev/null) - (cd "$FLUTTER_DIR"; "$PUB" get > /dev/null) # Allows us to check if sky_engine's REVISION is correct + (cd "$FLUTTER_TOOLS_DIR"; "../../bin/cache/dart-sdk/bin/pub" get > /dev/null) + (cd "$FLUTTER_DIR"; "../../bin/cache/dart-sdk/bin/pub" get > /dev/null) # Allows us to check if sky_engine's REVISION is correct "$DART" --snapshot="$SNAPSHOT_PATH" --package-root="$FLUTTER_TOOLS_DIR/packages" "$SCRIPT_PATH" echo $REVISION > "$STAMP_PATH" fi