2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 09:14:04 +00:00

fix: branch argument while running easy install

This commit is contained in:
Saurabh 2019-07-23 12:04:47 +05:30
parent 6d4df81412
commit 94525d0721

View File

@ -108,6 +108,9 @@ def install_bench(args):
if args.production: if args.production:
extra_vars.update(max_worker_connections=multiprocessing.cpu_count() * 1024) extra_vars.update(max_worker_connections=multiprocessing.cpu_count() * 1024)
frappe_branch = 'version-12'
erpnext_branch = 'version-12'
if args.version: if args.version:
if args.version <= 10: if args.version <= 10:
frappe_branch = "{0}.x.x".format(args.version) frappe_branch = "{0}.x.x".format(args.version)
@ -118,14 +121,11 @@ def install_bench(args):
else: else:
if args.frappe_branch: if args.frappe_branch:
frappe_branch = args.frappe_branch frappe_branch = args.frappe_branch
else:
frappe_branch = 'version-12'
extra_vars.update(frappe_branch=frappe_branch)
if args.erpnext_branch: if args.erpnext_branch:
erpnext_branch = args.erpnext_branch erpnext_branch = args.erpnext_branch
else:
erpnext_branch = 'version-12' extra_vars.update(frappe_branch=frappe_branch)
extra_vars.update(erpnext_branch=erpnext_branch) extra_vars.update(erpnext_branch=erpnext_branch)
bench_name = 'frappe-bench' if not args.bench_name else args.bench_name bench_name = 'frappe-bench' if not args.bench_name else args.bench_name