File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ if [ "$disksize" -le 274877906944 ]; then
8282 echo " cmd /c start \" $WSL_DISTRO_NAME \" wsl.exe --cd ~ -d $WSL_DISTRO_NAME " | sudo tee -a ~ /shutdown.cmd > /dev/null 2>&1
8383 fi
8484 cp ~ /vhdresize.txt /mnt/c/Users/Public
85- cp ~ /shutdown.cmd /mnt/c/Users/Public
85+ cp ~ /shutdown.cmd /mnt/c/Users/Public && rm ~ /shutdown.cmd
8686 break
8787 fi
8888 else
@@ -137,7 +137,7 @@ select yn in "Yes" "No"; do
137137 echo " cmd /c start \" $WSL_DISTRO_NAME \" wsl.exe --cd ~ -d $WSL_DISTRO_NAME " | sudo tee -a ~ /shutdown.cmd > /dev/null 2>&1
138138 fi
139139 echo " del C:\Users\Public\shutdown.cmd" | sudo tee -a ~ /shutdown.cmd > /dev/null 2>&1
140- cp ~ /shutdown.cmd /mnt/c/Users/Public
140+ cp ~ /shutdown.cmd /mnt/c/Users/Public && rm ~ /shutdown.cmd
141141
142142 secs=3
143143 printf ${ylw} " \nTo set the new user as the default user, LinuxmintWSL will shutdown and restart!!!\n\n" ${txtrst}
You can’t perform that action at this time.
0 commit comments