def set_git_user_email():
username = subprocess.run(shlex.split('<STR_LIT>'), stdout=subprocess.PIPE).stdout.strip().decode('<STR_LIT:utf-8>')<EOL>if not username or username == "<STR_LIT>":<EOL><INDENT>run(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', "<STR_LIT>"])<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>" % username)<EOL><DEDENT>email = subprocess.run(shlex.split('<STR_LIT>'), stdout=subprocess.PIPE).stdout.strip().decode('<STR_LIT:utf-8>')<EOL>if not email or email == "<STR_LIT>":<EOL><INDENT>run(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>" % email)<EOL><DEDENT>
Set global user and email for git user if not already present on system