packaging: add help information for '-f' option in install_go.sh

add help info for force install, and remove unused '-p' option.

Fixes: #3168

Signed-off-by: zhanghj <zhanghj.lc@inspur.com>
This commit is contained in:
zhanghj 2021-12-02 02:58:12 -05:00
parent 3992d28f00
commit 1e6f58e562

View File

@ -41,6 +41,8 @@ ${script_name}
Options
-d <path> : destination path, path where go will be installed.
-f : enable force install, remove existent go pkg before installation.
-h : display this help.
EOT
exit "$exit_code"
@ -50,7 +52,7 @@ trap finish EXIT
pushd "${tmp_dir}"
while getopts "d:fhp" opt
while getopts "d:fh" opt
do
case $opt in
d) install_dest="${OPTARG}" ;;