Skip to content

Commit

Permalink
Merge pull request #7 from agrosner/patch-1
Browse files Browse the repository at this point in the history
Fix check for existing flutter submodule
  • Loading branch information
passsy authored Jan 7, 2019
2 parents 5bd251e + 3cf1815 commit c8513f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flutterw
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
fi

# submodule starting with "-" are not initialized
init_status=`git submodule | grep .flutter | cut -c 1`
init_status=`git submodule | git submodule | grep "\ \.flutter\ " | cut -c 1`

# Fix not initialized flutter submodule
if [ "$init_status" = "-" ]; then
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ printf "Installing Flutter Wrapper $VERSION_TAG\n"
FLUTTER_DIR_NAME='.flutter'

# Check if submodule already exists (when updating flutter wrapper)
HAS_SUBMODULE=`git submodule | grep .flutter`
HAS_SUBMODULE=`git submodule | grep "\ \.flutter\ "`
if [ -z "$HAS_SUBMODULE" ]; then
printf "adding '.flutter' submodule\n"
UPDATED=false
Expand Down

0 comments on commit c8513f1

Please sign in to comment.