Skip to content

Commit c8513f1

Browse files
authored
Merge pull request #7 from agrosner/patch-1
Fix check for existing flutter submodule
2 parents 5bd251e + 3cf1815 commit c8513f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flutterw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
4444
fi
4545

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

4949
# Fix not initialized flutter submodule
5050
if [ "$init_status" = "-" ]; then

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ printf "Installing Flutter Wrapper $VERSION_TAG\n"
5858
FLUTTER_DIR_NAME='.flutter'
5959

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

0 commit comments

Comments
 (0)