Remove unused parameter (#231)
Remove unused parameter in installCatalog.sh
diff --git a/packages/installCatalog.sh b/packages/installCatalog.sh
index e822152..f2917e7 100755
--- a/packages/installCatalog.sh
+++ b/packages/installCatalog.sh
@@ -8,7 +8,7 @@
SCRIPTDIR="$(cd $(dirname "$0")/ && pwd)"
OPENWHISK_HOME=${OPENWHISK_HOME:-$SCRIPTDIR/../../openwhisk}
-source "$SCRIPTDIR/validateParameter.sh" $1 $2 $3 $4
+source "$SCRIPTDIR/validateParameter.sh" $1 $2 $3
: ${WHISK_SYSTEM_AUTH:?"WHISK_SYSTEM_AUTH is not configured. Please input the correctly parameter: CATALOG_AUTH_KEY"}
: ${WHISK_API_HOST:?"WHISK_API_HOST is not configured. Please input the correctly parameter: API_HOST"}
: ${WHISK_CLI_PATH:?"WHISK_CLI_PATH is not configured. Please input the correctly parameter: cli_path"}
diff --git a/packages/validateParameter.sh b/packages/validateParameter.sh
index 5c33957..a8bb4ed 100755
--- a/packages/validateParameter.sh
+++ b/packages/validateParameter.sh
@@ -4,7 +4,7 @@
#
# The first argument is the catalog authentication key, which can be passed via either
-# a file or the key itself.
+# a file or the key itself.
CATALOG_AUTH_KEY=${1:-"$OPENWHISK_HOME/ansible/files/auth.whisk.system"}
# If the auth key file exists, read the key in the file. Otherwise, take the
@@ -33,7 +33,7 @@
: ${API_HOST:?"API_HOST must be set and non-empty"}
export WHISK_API_HOST=$API_HOST
-# The CLI path is passed as the fourth argument. If it is not provided, use
+# The CLI path is passed as the third argument. If it is not provided, use
# "$OPENWHISK_HOME/bin/wsk" as the default value.
-cli_path=${4:-"$OPENWHISK_HOME/bin/wsk"}
+cli_path=${3:-"$OPENWHISK_HOME/bin/wsk"}
export WHISK_CLI_PATH=$cli_path