2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-16 01:57:08 +00:00

fix bench update

This commit is contained in:
Pratik Vyas 2014-07-11 10:02:54 +05:30
parent e04f548389
commit 1a86f8e238

View File

@ -43,17 +43,17 @@ def new_site(site):
@click.option('--patch',flag_value=True, type=bool) @click.option('--patch',flag_value=True, type=bool)
@click.option('--build',flag_value=True, type=bool) @click.option('--build',flag_value=True, type=bool)
@click.option('--bench',flag_value=True, type=bool) @click.option('--bench',flag_value=True, type=bool)
def update(pull=False, patch=False, build=False): def update(pull=False, patch=False, build=False, bench=False):
if not (pull or patch or build or bench): if not (pull or patch or build or bench):
pull, patch, build, bench = True, True, True, True pull, patch, build, bench = True, True, True, True
if bench:
update_bench()
if pull: if pull:
pull_all_apps() pull_all_apps()
if patch: if patch:
patch_sites() patch_sites()
if build: if build:
build_assets() build_assets()
if bench:
update_bench()
@click.command('restart') @click.command('restart')
def restart(): def restart():