From 1e6f58e56297480cb7f0193c233bbd8b24745409 Mon Sep 17 00:00:00 2001 From: zhanghj Date: Thu, 2 Dec 2021 02:58:12 -0500 Subject: [PATCH] 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 --- tools/packaging/static-build/shim-v2/install_go.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/packaging/static-build/shim-v2/install_go.sh b/tools/packaging/static-build/shim-v2/install_go.sh index 653b9ad412..b70fa2eeb2 100755 --- a/tools/packaging/static-build/shim-v2/install_go.sh +++ b/tools/packaging/static-build/shim-v2/install_go.sh @@ -41,6 +41,8 @@ ${script_name} Options -d : 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}" ;;