Merge pull request #3169 from Kvasscn/kata_dev_add_install_go_help

packaging: add help information for '-f' option in install_go.sh
This commit is contained in:
Bin Liu
2021-12-03 14:39:05 +08:00
committed by GitHub

View File

@@ -41,6 +41,8 @@ ${script_name}
Options Options
-d <path> : destination path, path where go will be installed. -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 EOT
exit "$exit_code" exit "$exit_code"
@@ -50,7 +52,7 @@ trap finish EXIT
pushd "${tmp_dir}" pushd "${tmp_dir}"
while getopts "d:fhp" opt while getopts "d:fh" opt
do do
case $opt in case $opt in
d) install_dest="${OPTARG}" ;; d) install_dest="${OPTARG}" ;;