Skip to content

Commit 71cc939

Browse files
sh script compliance
1 parent ecad084 commit 71cc939

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

installer/src/main/bin/deployApps.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ esac
142142
#
143143
# Check to see if no args were given and print the usage message
144144
#
145-
if [[ $# = 0 ]]; then
145+
if [ "$#" -eq "0" ]; then
146146
usage `basename $0`
147147
exit 0
148148
fi
@@ -153,7 +153,7 @@ MIN_JDK_VERSION=7
153153
# Find the args required to determine the WLST script to run
154154
#
155155

156-
while [[ $# > 1 ]]; do
156+
while [ "$#" -gt 1 ]; do
157157
key="$1"
158158
case $key in
159159
-help)

installer/src/main/bin/discoverDomain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fi
136136
#
137137
# Check to see if no args were given and print the usage message
138138
#
139-
if [[ $# = 0 ]]; then
139+
if [ "$#" -eq "0" ]; then
140140
usage `basename $0`
141141
exit 0
142142
fi
@@ -146,7 +146,7 @@ SCRIPT_ARGS="$*"
146146
#
147147
# Find the args required to determine the WLST script to run
148148
#
149-
while [[ $# > 1 ]]; do
149+
while [ "$#" -gt "1" ]; do
150150
key="$1"
151151
case $key in
152152
-help)

installer/src/main/bin/encryptModel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fi
140140
#
141141
# Check to see if no args were given and print the usage message
142142
#
143-
if [[ $# = 0 ]]; then
143+
if [ "$#" -eq "0" ]; then
144144
usage `basename $0`
145145
exit 0
146146
fi
@@ -150,7 +150,7 @@ SCRIPT_ARGS="$*"
150150
#
151151
# Find the args required to determine the WLST script to run
152152
#
153-
while [[ $# > 1 ]]; do
153+
while [ "$#" -gt "1" ]; do
154154
key="$1"
155155
case $key in
156156
-help)

installer/src/main/bin/injectVariables.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ fi
148148
#
149149
# Check to see if no args were given and print the usage message
150150
#
151-
if [[ $# = 0 ]]; then
151+
if [ "$#" -eq "0" ]; then
152152
usage `basename $0`
153153
exit 0
154154
fi
@@ -159,7 +159,7 @@ SCRIPT_ARGS="$*"
159159
# Find the args required to determine the WLST script to run
160160
#
161161

162-
while [[ $# > 1 ]]; do
162+
while [ "$#" -gt "1" ]; do
163163
key="$1"
164164
case $key in
165165
-help)

installer/src/main/bin/updateDomain.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ esac
142142
#
143143
# Check to see if no args were given and print the usage message
144144
#
145-
if [[ $# = 0 ]]; then
145+
if [ "$#" -eq "0" ]; then
146146
usage `basename $0`
147147
exit 0
148148
fi
@@ -154,7 +154,7 @@ MIN_JDK_VERSION=7
154154
# Find the args required to determine the WLST script to run
155155
#
156156

157-
while [[ $# > 1 ]]; do
157+
while [ "$#" -gt "1" ]; do
158158
key="$1"
159159
case $key in
160160
-help)

installer/src/main/bin/validateModel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ fi
158158
#
159159
# Check to see if no args were given and print the usage message
160160
#
161-
if [[ $# = 0 ]]; then
161+
if [ "$#" -eq "0" ]; then
162162
usage `basename $0`
163163
exit 0
164164
fi
@@ -169,7 +169,7 @@ SCRIPT_ARGS="$*"
169169
# Find the args required to determine the WLST script to run
170170
#
171171

172-
while [[ $# > 1 ]]; do
172+
while [ "$#" -gt "1" ]; do
173173
key="$1"
174174
case $key in
175175
-help)

samples/docker-domain/container-scripts/setEnv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash ex
1+
#!/bin/sh ex
22

33
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
44
# The Universal Permissive License (UPL), Version 1.0

samples/docker-domain/container-scripts/startAdminServer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
#
33
#Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
44
#

samples/docker-domain/container-scripts/startManagedServer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
#
33
#Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
44
#

samples/docker-domain/container-scripts/waitForAdminServer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
#
33
#Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
44
#
@@ -12,7 +12,7 @@ while :
1212
do
1313
(echo > /dev/tcp/$ADMIN_HOST/$ADMIN_PORT) >/dev/null 2>&1
1414
available=$?
15-
if [[ $available -eq 0 ]]; then
15+
if [ "$available" -eq "0" ]; then
1616
echo "WebLogic Admin Server is now available. Proceeding..."
1717
break
1818
fi

0 commit comments

Comments
 (0)