Skip to content

Commit 95d87af

Browse files
author
helpermethod
committed
Perform a cp instead of a mv when migrating sdkman_selfupdate_enable
1 parent 8b208b1 commit 95d87af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/selfupdate_beta.scala.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ fi
172172
# migrate deprecated sdkman_selfupdate_enable configuration
173173
@defining(LocalDate.now()) { now =>
174174
sed 's/sdkman_selfupdate_enable/sdkman_auto_update/' "$sdkman_config_file" > "${sdkman_config_file}[email protected]" &&
175-
mv "${sdkman_config_file}[email protected]" "$sdkman_config_file"
175+
cp "${sdkman_config_file}[email protected]" "$sdkman_config_file"
176176
}
177177

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

0 commit comments

Comments
 (0)