We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75102fe commit 9578898Copy full SHA for 9578898
app/views/selfupdate_beta.scala.txt
@@ -169,7 +169,8 @@ if [[ -z $(cat ${sdkman_config_file} | grep 'sdkman_auto_complete') ]]; then
169
fi
170
171
# migrate deprecated sdkman_selfupdate_enable configuration
172
-sed -i$(date +%F).bak -e 's/sdkman_selfupdate_enable/sdkman_auto_update/' "$sdkman_config_file"
+sed 's/sdkman_selfupdate_enable/sdkman_auto_update/' "$sdkman_config_file" > "{sdkman_config_file}.migrated" &&
173
+ mv "{sdkman_config_file}.migrated" "$sdkman_config_file"
174
175
if [[ -z $(cat ${sdkman_config_file} | grep 'sdkman_auto_update') ]]; then
176
echo "sdkman_auto_update=true" >> "$sdkman_config_file"
0 commit comments