added: focusmate-nativefier

This commit is contained in:
Sebastian Rust
2022-07-10 13:39:17 +02:00
parent 7b1d6bc047
commit b9e022694e
4 changed files with 10 additions and 1 deletions

View File

@@ -8,8 +8,12 @@ def aur(c, name):
@task
def add(c, url, name=None):
print(name)
if name is None:
ending = url.rfind('/') + 1
pos = url.rfind('/') + 1
print(url)
print(pos)
ending = url[pos:]
ending = ending.split(".")
name = ending[0]
c.run(f"git submodule add {url} {name}")