def main():
    # Find Bundles
    bundles = []
    for vimrc_file in get_vimrc_locations():
        vimrc = open(vimrc_file, "r").read()
        bundles += re.findall(re.compile('bundle\s+\'(.*)\'', re.IGNORECASE), vimrc)

    # Create Bundle Directory for Vundle to install to
    bundle_dir = os.path.expandvars("$HOME/.vim/bundle/")
    if not os.path.exists(bundle_dir):
        os.makedirs(bundle_dir)

    # Install Plugins to Bundle Dir
    for bundle in set(bundles):
        url = get_git_repo(bundle)
        dest_folder = url.split("/")[-1].split(".git")[0]
        clone_command = 'git clone --recursive %(git_repo)s %(destination)s' % {
            'git_repo': url,
            'destination': os.path.normpath((bundle_dir, dest_folder) % '%s/%s'),
        }
        print "Installing %s" % bundle
        status = commands.getstatusoutput(clone_command)
        if status[0] is not 0:
            print status[1]
dataset/ETHPy150Open demophoon/vundle-headless-installer/install.py/main/swapped operands of `%`