def shell_command(cmd, dry_run=False):
if cmd[<NUM_LIT:0>] == '<STR_LIT>':<EOL><INDENT>if dry_run:<EOL><INDENT>cmd = [cmd[<NUM_LIT:0>], '<STR_LIT>'] + cmd[<NUM_LIT:1>:]<EOL><DEDENT>LOGGER.info('<STR_LIT>', '<STR_LIT:U+0020>'.join(cmd))<EOL>subprocess.check_call(cmd)<EOL><DEDENT>else:<EOL><INDENT>LOGGER.info('<STR_LIT>', '<STR_LIT:U+0020>'.join(cmd))<EOL>if not dry_run:<EOL><INDENT>subprocess.check_call(cmd)<EOL><DEDENT><DEDENT>
Run a shell command.