mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-02-01 02:03:18 -05:00
Rename auto var to gvm_auto_answer
This commit is contained in:
@@ -31,7 +31,7 @@ function __gvmtool_install {
|
||||
if [[ ${VERSION_VALID} == 'valid' ]]; then
|
||||
__gvmtool_install_candidate_version "${CANDIDATE}" "${VERSION}" || return 1
|
||||
|
||||
if [[ -z "${gvm_auto}" ]]; then
|
||||
if [[ -z "${gvm_auto_answer}" ]]; then
|
||||
echo -n "Do you want ${CANDIDATE} ${VERSION} to be set as default? (Y/n): "
|
||||
read USE
|
||||
fi
|
||||
|
||||
@@ -24,7 +24,7 @@ function __gvmtool_use {
|
||||
if [[ "${GVM_ONLINE}" == "true" && ! -d "${GVM_DIR}/${CANDIDATE}/${VERSION}" ]]; then
|
||||
echo ""
|
||||
echo "Stop! ${CANDIDATE} ${VERSION} is not installed."
|
||||
if [[ -z "${gvm_auto}" ]]; then
|
||||
if [[ -z "${gvm_auto_answer}" ]]; then
|
||||
echo -n "Do you want to install it now? (Y/n): "
|
||||
read INSTALL
|
||||
fi
|
||||
|
||||
@@ -82,7 +82,7 @@ And(~'^the candidate "([^"]*)" version "([^"]*)" is already linked to "([^"]*)"$
|
||||
|
||||
And(~'^I have configured autoinstall="([^"]*)"$') { String flag ->
|
||||
def configFile = new File("$gvmDir/etc/config")
|
||||
configFile.write "gvm_auto=${flag}"
|
||||
configFile.write "gvm_auto_answer=${flag}"
|
||||
}
|
||||
|
||||
private prepareCandidateFolder(String baseDir, String candidate, String version) {
|
||||
|
||||
Reference in New Issue
Block a user