Use `local` for all variables defined inside functions; also convert them all to common name style (lowercase for locals) _Originally posted by @thockin in https://github.com/kubernetes/git-sync/issues/902#issuecomment-2187270246_