Skip to content

Conversation

@luca1234567a
Copy link

@luca1234567a luca1234567a commented Dec 19, 2024

store_config(): Change for more efficency, and not necessary operation. Change order of if.
Prevent non necessary execution of current_md5sum=$($CMD_MD5SUM "$file" 2>/dev/null | $CMD_CUT -d' ' -f1) if $file non exist.
Place first if [ -z "$orig_md5sum" ]; then because if $orig_md5sum is empty the if [ "$orig_md5sum" = "$current_md5sum" ] || [ "$new_md5sum" = "$current_md5sum" ]; then allways was false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant