Skip to content

Commit df3d8ed

Browse files
committed
Minor cleanup
Signed-off-by: doxiao <[email protected]>
1 parent b2e0205 commit df3d8ed

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

kubernetes/samples/scripts/create-weblogic-domain/create-weblogic-credentials.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99
# * The kubernetes namespace must already be created
1010
#
1111

12-
# Initialize
1312
script="${BASH_SOURCE[0]}"
14-
scriptDir="$( cd "$( dirname "${script}" )" && pwd )"
15-
# source ${scriptDir}/../common/utility.sh
16-
# source ${scriptDir}/../common/validate.sh
1713

1814
#
1915
# Function to exit and print an error message
@@ -23,15 +19,15 @@ function fail {
2319
exit 1
2420
}
2521

26-
# try to execute kubectl to see whether kubectl is available
22+
# Try to execute kubectl to see whether kubectl is available
2723
function validateKubectlAvailable {
2824
if ! [ -x "$(command -v kubectl)" ]; then
2925
fail "kubectl is not installed"
3026
fi
3127
}
3228

3329
function usage {
34-
echo usage: ${script} -u userName -p password [-d domainUID] [-n name] [-h]
30+
echo usage: ${script} -u username -p password [-d domainUID] [-n namespace] [-h]
3531
echo " -u username, must be specified."
3632
echo " -p password, must be specified."
3733
echo " -n namespace, optional."

0 commit comments

Comments
 (0)