diff --git a/bin/flutter b/bin/flutter index d6b607236c..61f25bdd80 100755 --- a/bin/flutter +++ b/bin/flutter @@ -126,7 +126,7 @@ if ! hash git 2>/dev/null; then exit 1 fi # Test if the flutter directory is a git clone (otherwise git rev-parse HEAD would fail) -if [ ! -d "$FLUTTER_ROOT/.git" ]; then +if [ ! -e "$FLUTTER_ROOT/.git" ]; then echo "Error: The Flutter directory is not a clone of the GitHub project." exit 1 fi