Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Name the PowerShell script after destination file if set #36

Open
patriksvensson opened this issue Jun 22, 2016 · 1 comment
Open

Name the PowerShell script after destination file if set #36

patriksvensson opened this issue Jun 22, 2016 · 1 comment

Comments

@patriksvensson
Copy link

If the $destination_file variable is set then the PowerShell script should use that variable instead of getting the filename from the URL.

In my case, I'm downloading two files with the same name in the URL (two different files that happens to have the same name in the URI) which causes the content of this file be constantly rewritten. Since there is a dependency between that file and the downloading, the files get redownloaded each time the agent runs.

@ElvenSpellmaker
Copy link
Contributor

ElvenSpellmaker commented Nov 21, 2016

+1 to this, I've just run into the problem myself because MS labels x64 files the same way as x86 meaning I need the powershell scripts (and the downloaded files) to be different names.

In fact, why is there a separate powershell script per download? Wouldn't it be neater to store only one download script and just call it with params?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants