Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
fac0d26d
Unverified
Commit
fac0d26d
authored
Mar 15, 2021
by
Jonah Williams
Committed by
GitHub
Mar 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] check for cygwin uname in entrypoint scripts (#78037)
parent
75da995f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dart
bin/dart
+2
-2
flutter
bin/flutter
+2
-2
No files found.
bin/dart
View file @
fac0d26d
...
@@ -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
...
...
bin/flutter
View file @
fac0d26d
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment