Skip to content

Commit 6e2e58b

Browse files
felipecrsmarc0der
authored andcommitted
Rename auto_selfupdate to selfupdate_enable
References sdkman/sdkman-cli#927
1 parent 90146f5 commit 6e2e58b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/views/install.scala.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ echo "$SDKMAN_CANDIDATES_CSV" > "${SDKMAN_DIR}/var/candidates"
228228
echo "Prime the config file..."
229229
touch "$sdkman_config_file"
230230
echo "sdkman_auto_answer=false" >> "$sdkman_config_file"
231-
echo "sdkman_auto_selfupdate=false" >> "$sdkman_config_file"
231+
echo "sdkman_selfupdate_enable=true" >> "$sdkman_config_file"
232232
echo "sdkman_insecure_ssl=false" >> "$sdkman_config_file"
233233
echo "sdkman_curl_connect_timeout=7" >> "$sdkman_config_file"
234234
echo "sdkman_curl_max_time=10" >> "$sdkman_config_file"

app/views/selfupdate.scala.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ if [[ -z $(cat ${sdkman_config_file} | grep 'sdkman_auto_answer') ]]; then
123123
echo "sdkman_auto_answer=false" >> "$sdkman_config_file"
124124
fi
125125

126-
if [[ -z $(cat ${sdkman_config_file} | grep 'sdkman_auto_selfupdate') ]]; then
127-
echo "sdkman_auto_selfupdate=false" >> "$sdkman_config_file"
126+
if [[ -z $(cat ${sdkman_config_file} | grep 'sdkman_selfupdate_enable') ]]; then
127+
echo "sdkman_selfupdate_enable=true" >> "$sdkman_config_file"
128128
fi
129129

130130
if [[ -z $(cat ${sdkman_config_file} | grep 'sdkman_insecure_ssl') ]]; then

0 commit comments

Comments
 (0)