Skip to content

Commit 65dbef5

Browse files
authored
Fix another typo in ArtifactToolsUtilities (#394)
* Fix another typo in ArtifactToolsUtilities * another package-lock update
1 parent 6211698 commit 65dbef5

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

common-npm-packages/packaging-common/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common-npm-packages/packaging-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-tasks-packaging-common",
3-
"version": "3.245.3",
3+
"version": "3.246.1",
44
"description": "Azure Pipelines Packaging Tasks Common",
55
"scripts": {
66
"test": "mocha _build/Tests/L0.js",

common-npm-packages/packaging-common/universal/ArtifactToolUtilities.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ import * as pkgLocationUtils from "../locationUtilities";
88
import * as tl from "azure-pipelines-task-lib";
99
import * as toollib from "azure-pipelines-tool-lib/tool";
1010

11+
const toolName = "artifacttool";
12+
1113
export function getArtifactToolLocation(dirName: string): string {
1214
let toolPath: string = path.join(dirName, "ArtifactTool.exe");
1315
if (tl.osType() !== "Windows_NT"){
14-
toolPath = path.join(dirName, "artifacttool");
16+
toolPath = path.join(dirName, toolName);
1517
}
1618
return toolPath;
1719
}
@@ -92,7 +94,7 @@ export async function getArtifactToolFromService(serviceUri: string, accessToken
9294
tl.debug("Downloaded zipped artifact tool to " + zippedToolsDir);
9395
const unzippedToolsDir = await extractZip(zippedToolsDir);
9496

95-
artifactToolPath = await toollib.cacheDir(unzippedToolsDir, "ArtifactTool", artifactToolUri.result['version']);
97+
artifactToolPath = await toollib.cacheDir(unzippedToolsDir, toolName, artifactToolUri.result['version']);
9698
} else {
9799
tl.debug(tl.loc("Info_ResolvedToolFromCache", artifactToolPath));
98100
}

0 commit comments

Comments
 (0)