From fac0d26d7351a3331941c47dad791c335ddcee65 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Mon, 15 Mar 2021 12:08:03 -0700 Subject: [PATCH] [flutter_tools] check for cygwin uname in entrypoint scripts (#78037) --- bin/dart | 4 ++-- bin/flutter | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/dart b/bin/dart index bcf8a8be9a..42743f7ae5 100755 --- a/bin/dart +++ b/bin/dart @@ -47,8 +47,8 @@ PROG_NAME="$(follow_links "${BASH_SOURCE[0]}")" BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" OS="$(uname -s)" -if [[ $OS =~ MINGW.* ]]; then - # If we're on Windows, invoke the batch script instead, to get proper locking. +# If we're on Windows, invoke the batch script instead to get proper locking. +if [[ $OS =~ MINGW.* || $OS =~ CYGWIN.* ]]; then exec "${BIN_DIR}/dart.bat" "$@" fi diff --git a/bin/flutter b/bin/flutter index c2223df1ce..a6ca46d48f 100755 --- a/bin/flutter +++ b/bin/flutter @@ -47,8 +47,8 @@ PROG_NAME="$(follow_links "${BASH_SOURCE[0]}")" BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" OS="$(uname -s)" -if [[ $OS =~ MINGW.* ]]; then - # If we're on Windows, invoke the batch script instead, to get proper locking. +# If we're on Windows, invoke the batch script instead to get proper locking. +if [[ $OS =~ MINGW.* || $OS =~ CYGWIN.* ]]; then exec "${BIN_DIR}/flutter.bat" "$@" fi