From 59c20fed6788f5b13329afa8cc95f7a8431679f7 Mon Sep 17 00:00:00 2001 From: Tomasz Kostrzewa Date: Wed, 6 Mar 2024 00:37:59 +0100 Subject: [PATCH] modified: RdzeN-Profile.ps1 --- RdzeN-Profile.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RdzeN-Profile.ps1 b/RdzeN-Profile.ps1 index eaf3864..6a9a10f 100644 --- a/RdzeN-Profile.ps1 +++ b/RdzeN-Profile.ps1 @@ -50,7 +50,7 @@ if (-not (Test-Path $path_profile_file)) { #Reload-Profile } else { # Check if the profile file has been modified - $local_profile_hash = Get-FileHash -Path $path_profile_file + $local_profile_hash = Get-FileHash -Path $path_profile_file -Algorithm MD5 $remote_profile_hash = git hash-object $path_profile_file if ($local_profile_hash.Hash -ne $remote_profile_hash.Trim()) { @@ -74,7 +74,7 @@ $remote_functions_hashes = @{} # Iterate through local functions Get-ChildItem $path_gitea_powershell_profile_functions | ForEach-Object { - $local_functions_hashes[$_.Name] = (Get-FileHash -Path $_.FullName).Hash + $local_functions_hashes[$_.Name] = (Get-FileHash -Path $_.FullName -Algorithm MD5).Hash } # Get remote functions hashes