Add MSYS2 detection on Windows Terminal (#117612)
As the results of "uname -s" command is like the below on MSYS2 on Windows Terminal, MSYS_NT-10.0-22621 This patch fixes the Flutter command working on this kind of systems. Signed-off-by: Deokgyu Yang <secugyu@gmail.com> Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
This commit is contained in:
@@ -53,7 +53,7 @@ BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)"
|
||||
OS="$(uname -s)"
|
||||
|
||||
# If we're on Windows, invoke the batch script instead to get proper locking.
|
||||
if [[ $OS =~ MINGW.* || $OS =~ CYGWIN.* ]]; then
|
||||
if [[ $OS =~ MINGW.* || $OS =~ CYGWIN.* || $OS =~ MSYS.* ]]; then
|
||||
exec "${BIN_DIR}/flutter.bat" "$@"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user