forked from firka/flutter
[flutter_tools] check for cygwin uname in entrypoint scripts (#78037)
This commit is contained in:
4
bin/dart
4
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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user