The problem with bash scripts is they tend to explode in unexpected ways when thing don’t go as intended. This could be one of the command you run returning some expected or not output which might work now but might not in the future. Best to program bash defensively.
Plus this applies to your family as well. DNA is shared and by you giving it up you give up info about those related to you as well.