Skip to content

Commit 629b266

Browse files
authored
Remove ToLower() from temp path (#1842)
1 parent 06aec34 commit 629b266

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/code/InstallHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ private void MoveFilesIntoInstallPath(
454454

455455
// If script, just move the files over, if module, move the version directory over
456456
var tempModuleVersionDir = (!isModule || isLocalRepo) ? dirNameVersion
457-
: Path.Combine(tempInstallPath, pkgInfo.Name.ToLower(), newVersion);
457+
: Path.Combine(tempInstallPath, pkgInfo.Name, newVersion);
458458

459459
_cmdletPassedIn.WriteVerbose($"Installation source path is: '{tempModuleVersionDir}'");
460460
_cmdletPassedIn.WriteVerbose($"Installation destination path is: '{finalModuleVersionDir}'");
@@ -984,7 +984,7 @@ private bool TryInstallToTempPath(
984984

985985
// Expand the zip file
986986
var pkgVersion = pkgToInstall.Version.ToString();
987-
var tempDirNameVersion = Path.Combine(tempInstallPath, pkgName.ToLower(), pkgVersion);
987+
var tempDirNameVersion = Path.Combine(tempInstallPath, pkgName, pkgVersion);
988988
Directory.CreateDirectory(tempDirNameVersion);
989989

990990
if (!TryExtractToDirectory(pathToFile, tempDirNameVersion, out error))

0 commit comments

Comments
 (0)