mirror of
https://github.com/iritmaximus/self-host.git
synced 2026-10-12 19:23:31 +03:00
updated setup.py to not crash with empty args
This commit is contained in:
@@ -20,6 +20,10 @@ projects = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
|
if len(sys.argv) < 2:
|
||||||
|
print("No args given. Options are \"init\" and \"sync\"")
|
||||||
|
return
|
||||||
for project_url in projects:
|
for project_url in projects:
|
||||||
if sys.argv[1] == "init":
|
if sys.argv[1] == "init":
|
||||||
pull_project_from_github(project_url)
|
pull_project_from_github(project_url)
|
||||||
|
|||||||
Reference in New Issue
Block a user