Skip to content

Commit

Permalink
fix return logic
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Nov 28, 2024
1 parent 4753a5d commit 99c3fe5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ def up(local: bool, debug: bool):
if not sys.stdin.isatty():
print("y")
shutil.copy(".env.example", ".env")
return
answer = input().lower()
if answer == "y" or answer == "yes":
shutil.copy(".env.example", ".env")
else:
print("Missing .env file. Exiting")
return
answer = input().lower()
if answer == "y" or answer == "yes":
shutil.copy(".env.example", ".env")
else:
print("Missing .env file. Exiting")
return

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

0 comments on commit 99c3fe5

Please sign in to comment.