Skip to content

Commit

Permalink
Bugfix: win_checksum.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
trondhindenes committed Jun 16, 2015
1 parent c87591f commit daee298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v1/ansible/module_utils/powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Function Get-FileChecksum($path)
{
$sp = new-object -TypeName System.Security.Cryptography.SHA1CryptoServiceProvider;
$fp = [System.IO.File]::Open($path, [System.IO.Filemode]::Open, [System.IO.FileAccess]::Read);
[System.BitConverter]::ToString($sp.ComputeHash($fp)).Replace("-", "").ToLower();
$hash = [System.BitConverter]::ToString($sp.ComputeHash($fp)).Replace("-", "").ToLower();
$fp.Dispose();
}
ElseIf (Test-Path -PathType Container $path)
Expand Down

0 comments on commit daee298

Please sign in to comment.