modified: RdzeN-Profile.ps1

This commit is contained in:
Tomasz Kostrzewa 2024-03-06 00:37:59 +01:00
parent f31a592d00
commit 59c20fed67

View File

@ -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