Fix bug with method arg

This commit is contained in:
Joshua Boniface 2019-04-05 22:41:00 -04:00
parent f1c45561eb
commit 38ef2db803

View File

@ -95,7 +95,7 @@ def clone_project(project):
type_dir = "{cwd}/projects/{ptype}".format(cwd=cwd, ptype=project_type)
project_dir = "{cwd}/projects/{ptype}/{name}".format(cwd=cwd, ptype=project_type, name=project_name)
# Determine our clone command
if args.method == 'ssh':
if args.method[0] == 'ssh':
clone_cmd = "git clone git@{url} {pdir}".format(url=project_url, pdir=project_dir)
else:
clone_cmd = "git clone https://{url} {pdir}".format(url=project_url, pdir=project_dir)