Skip to content

install scripts should remove temp zip file - #97

Merged
vlada-shubina merged 4 commits into
dotnet:masterfrom
vlada-shubina:remove-temp-files
Nov 11, 2020
Merged

vlada-shubina merged 4 commits into
dotnet:masterfrom
vlada-shubina:remove-temp-files

Conversation

@vlada-shubina

Copy link
Copy Markdown
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
Comment thread src/dotnet-install.ps1 Resolved
Comment thread src/dotnet-install.sh Resolved
Comment thread src/dotnet-install.sh Resolved
Comment thread src/dotnet-install.sh Resolved
@vlada-shubina

vlada-shubina commented Nov 6, 2020 •

Copy link
Copy Markdown
Member Author

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.

Comment thread src/dotnet-install.ps1 Resolved
Comment thread src/dotnet-install.ps1 Resolved
- 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