Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
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
DEMO
spring-boot
Commits
c7a5b725
Commit
c7a5b725
authored
Apr 29, 2020
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve compatibility by replacing use of seq with a native for-loop
Closes gh-21068
parent
76d71e58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
launch.script
...urces/org/springframework/boot/loader/tools/launch.script
+2
-2
No files found.
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/resources/org/springframework/boot/loader/tools/launch.script
View file @
c7a5b725
...
...
@@ -223,7 +223,7 @@ stop() {
do_stop
()
{
kill
"
$1
"
&> /dev/null
||
{
echoRed
"Unable to kill process
$1
"
;
return
1
;
}
for
i
in
$(
seq
1
$STOP_WAIT_TIME
)
;
do
for
((
i
=
1
;
i <
=
STOP_WAIT_TIME
;
i++
)
)
;
do
isRunning
"
$1
"
||
{
echoGreen
"Stopped [
$1
]"
;
rm
-f
"
$2
"
;
return
0
;
}
[[
$i
-eq
STOP_WAIT_TIME/2
]]
&&
kill
"
$1
"
&> /dev/null
sleep
1
...
...
@@ -241,7 +241,7 @@ force_stop() {
do_force_stop
()
{
kill
-9
"
$1
"
&> /dev/null
||
{
echoRed
"Unable to kill process
$1
"
;
return
1
;
}
for
i
in
$(
seq
1
$STOP_WAIT_TIME
)
;
do
for
((
i
=
1
;
i <
=
STOP_WAIT_TIME
;
i++
)
)
;
do
isRunning
"
$1
"
||
{
echoGreen
"Stopped [
$1
]"
;
rm
-f
"
$2
"
;
return
0
;
}
[[
$i
-eq
STOP_WAIT_TIME/2
]]
&&
kill
-9
"
$1
"
&> /dev/null
sleep
1
...
...
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