Skip to content

Commit ccf0685

Browse files
authored
Fix Publish-PSResource -DestinationPath test failure (#537)
1 parent 8c8bc89 commit ccf0685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code/PublishPSResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ protected override void ProcessRecord()
393393
try
394394
{
395395
var nupkgName = _pkgName + "." + _pkgVersion.ToNormalizedString() + ".nupkg";
396-
Utils.MoveFiles(System.IO.Path.Combine(outputNupkgDir, nupkgName), System.IO.Path.Combine(_destinationPath, nupkgName));
396+
File.Copy(System.IO.Path.Combine(outputNupkgDir, nupkgName), System.IO.Path.Combine(_destinationPath, nupkgName));
397397
}
398398
catch (Exception e) {
399399
var message = string.Format("Error moving .nupkg into destination path '{0}' due to: '{1}'.", _destinationPath, e.Message);

0 commit comments

Comments
 (0)