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