Skip to content

Conversation

@vlada-shubina
Copy link
Member

fixes #45:

  • install-scripts.sh - temp zip file is now removed before script exits
  • install-scripts.ps1 - added removing of zip file in case of download failure and log messages

@vlada-shubina vlada-shubina requested a review from a team November 6, 2020 13:32
@vlada-shubina vlada-shubina self-assigned this Nov 6, 2020
@vlada-shubina
Copy link
Member Author

vlada-shubina commented Nov 6, 2020

Note for:

Could consider also a more distinct temp file name and cleaning up someDistinctDotNettyName.* in TMP every time.

  • I can change the pattern for temp file generation to better one: currently we use <random> for PS1 and dotnet.<random> for SH, however please advise on pattern.
  • I would not recommend cleaning up any files which were not created by the current script run, this behavior opens a breach and might cause accidental removal of files which are not supposed to be removed. After this PR the error on file removal would be shown in output, so the manual action can be taken if temp files were not removed.

- install-scripts.sh - temp zip file is now removed before script exits
- install-scripts.ps1 - added removing of zip file in case of download failure and log messages

(cherry picked from commit 572dd2a9f24b64f25ea6b9dae9f18b7e4fa4a653)
@vlada-shubina vlada-shubina merged commit 8765035 into dotnet:master Nov 11, 2020
@vlada-shubina vlada-shubina deleted the remove-temp-files branch November 11, 2020 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repeated invocations of dotnet-install.sh will fill TMP directory

5 participants