Unverified Commit fac0d26d authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] check for cygwin uname in entrypoint scripts (#78037)

parent 75da995f
...@@ -47,8 +47,8 @@ PROG_NAME="$(follow_links "${BASH_SOURCE[0]}")" ...@@ -47,8 +47,8 @@ PROG_NAME="$(follow_links "${BASH_SOURCE[0]}")"
BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)"
OS="$(uname -s)" 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" "$@" exec "${BIN_DIR}/dart.bat" "$@"
fi fi
......
...@@ -47,8 +47,8 @@ PROG_NAME="$(follow_links "${BASH_SOURCE[0]}")" ...@@ -47,8 +47,8 @@ PROG_NAME="$(follow_links "${BASH_SOURCE[0]}")"
BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)"
OS="$(uname -s)" 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" "$@" exec "${BIN_DIR}/flutter.bat" "$@"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment