diff --git a/src/west/_bootstrap/main.py b/src/west/_bootstrap/main.py index c160ce0..87642a5 100644 --- a/src/west/_bootstrap/main.py +++ b/src/west/_bootstrap/main.py @@ -171,7 +171,11 @@ to handle any resetting yourself. try: reinit(os.path.join(west_dir(args.directory), 'config'), args) + bootstrapping = False except WestNotFound: + bootstrapping = True + + if bootstrapping: bootstrap(args)