I don't think you should do this here. I would just exit this script with an error if the keys don't match.

My reasoning: it's not enough to just copy the keys; we should also need to check them into git and push them github. It's also bad to blindly trust a script to manage keys for you like this, just in case we accidentally change the keys (or the server gets compromised).