mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 15:02:45 +00:00
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:
parent
3992d28f00
commit
1e6f58e562
@ -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}" ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user