Merge pull request #4092 from Yan-Daojiang/ydj/hack/install_cli

Fix interactive checks in one-click installations
This commit is contained in:
karmada-bot 2023-10-09 11:03:15 +08:00 committed by GitHub
commit 38ec57982c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -241,9 +241,9 @@ setup_binary() {
local CMD_MOVE="mv -i \"${TMP_DIR}/${INSTALL_CLI_TYPE}\" \"${INSTALL_LOCATION}\""
if [[ -w "${INSTALL_LOCATION}" ]]; then
eval "${CMD_MOVE}"
eval "${CMD_MOVE} < /dev/tty"
else
eval "sudo ${CMD_MOVE}"
eval "sudo ${CMD_MOVE} < /dev/tty"
fi
}