Skip to content

Commit 16dc4bf

Browse files
authored
Allow for -help, or any flag option, to be at the end (#591)
1 parent 5bfcd71 commit 16dc4bf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

installer/src/main/bin/createDomain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# *****************************************************************************
33
# createDomain.sh
44
#
5-
# Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
5+
# Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.
66
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
77
#
88
# NAME
@@ -172,7 +172,7 @@ MIN_JDK_VERSION=7
172172
#
173173
# Find the args required to determine the WLST script to run
174174
#
175-
while [ "$#" -gt "1" ]; do
175+
while [ "$#" -gt "0" ]; do
176176
key="$1"
177177
case $key in
178178
-help)

installer/src/main/bin/discoverDomain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ SCRIPT_ARGS="$*"
199199
#
200200
# Find the args required to determine the WLST script to run
201201
#
202-
while [ "$#" -gt "1" ]; do
202+
while [ "$#" -gt "0" ]; do
203203
key="$1"
204204
case $key in
205205
-help)

installer/src/main/bin/updateDomain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# *****************************************************************************
33
# updateDomain.sh
44
#
5-
# Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
5+
# Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.
66
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
77
#
88
# NAME
@@ -152,7 +152,7 @@ MIN_JDK_VERSION=7
152152
# Find the args required to determine the WLST script to run
153153
#
154154

155-
while [ "$#" -gt "1" ]; do
155+
while [ "$#" -gt "0" ]; do
156156
key="$1"
157157
case $key in
158158
-help)

0 commit comments

Comments
 (0)