Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/installer_utils/repo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,14 @@ def _display_key_and_url_for_repo(
log.error(f"Public key file not found at {key_file_pub}")
raise

input("Press Enter once the deploy key has been successfully added to the Git host...")
import sys
if sys.stdin.isatty():
input("Press Enter once the deploy key has been successfully added to the Git host...")
else:
log.warning(
"Non-interactive context (cloud-init?): cannot prompt. "
"Add the public key above to the Git host, then re-run this setup."
)

# --- NEW DOTENV SYNC UTILITY ---
def _dotenv_sync_if_needed(exec_obj: Executor, repo_name: str, user: str, repo_dir: str) -> None:
Expand Down
Loading