This repository has been archived on 2023-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
yagrmm/main.py

18 lines
410 B
Python
Executable File

#!/usr/bin/python3
from pathlib import Path as path
from subprocess import run
home = str(path.home())
with open(home+"/.config/yagrmm/repolist") as repolist_file:
repolist = repolist_file.read().splitlines()
for i in range(len(repolist)):
repolist[i] = repolist[i].replace("~", home)
for repo in repolist:
print(repo)
run(["git", "-C", repo, "pull"])
run(["git", "-C", repo, "push"])