Skip to content

Commit

Permalink
add progress preference to windows install cmd (#133756)
Browse files Browse the repository at this point in the history
  • Loading branch information
hop-dev committed Jun 7, 2022
1 parent 9f19adf commit 45099d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
"$ProgressPreference = 'SilentlyContinue'
wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
Expand-Archive .\\\\elastic-agent--windows-x86_64.zip
cd elastic-agent--windows-x86_64
.\\\\elastic-agent.exe install \`
Expand Down Expand Up @@ -165,7 +166,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
"$ProgressPreference = 'SilentlyContinue'
wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
Expand-Archive .\\\\elastic-agent--windows-x86_64.zip
cd elastic-agent--windows-x86_64
.\\\\elastic-agent.exe install \`
Expand Down Expand Up @@ -276,7 +278,8 @@ describe('getInstallCommandForPlatform', () => {
);

expect(res).toMatchInlineSnapshot(`
"wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
"$ProgressPreference = 'SilentlyContinue'
wget https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent--windows-x86_64.zip -OutFile elastic-agent--windows-x86_64.zip
Expand-Archive .\\\\elastic-agent--windows-x86_64.zip
cd elastic-agent--windows-x86_64
.\\\\elastic-agent.exe install --url=http://fleetserver:8220 \`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function getInstallCommandForPlatform(
const downloadCommand =
platform === 'windows'
? [
"$ProgressPreference = 'SilentlyContinue'",
`wget ${artifact.fullUrl} -OutFile ${artifact.filename}`,
`Expand-Archive .\\${artifact.filename}`,
`cd ${artifact.unpackedDir}`,
Expand Down

0 comments on commit 45099d3

Please sign in to comment.