Skip to content

Commit 99c3fe5

Browse files
committed
fix return logic
1 parent 4753a5d commit 99c3fe5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ def up(local: bool, debug: bool):
4242
if not sys.stdin.isatty():
4343
print("y")
4444
shutil.copy(".env.example", ".env")
45-
return
46-
answer = input().lower()
47-
if answer == "y" or answer == "yes":
48-
shutil.copy(".env.example", ".env")
4945
else:
50-
print("Missing .env file. Exiting")
51-
return
46+
answer = input().lower()
47+
if answer == "y" or answer == "yes":
48+
shutil.copy(".env.example", ".env")
49+
else:
50+
print("Missing .env file. Exiting")
51+
return
5252

5353
# Reset the swarm if it exists
5454
run_subprocess("docker swarm leave --force || true")

0 commit comments

Comments
 (0)