This commit is contained in:
2026-01-11 11:16:54 -08:00
parent fa9f765089
commit b44c842226

View File

@@ -780,6 +780,8 @@ def main() -> int:
print() print()
print("✅ Installation check complete!") print("✅ Installation check complete!")
return 0 return 0
# If no specific action flag is passed and we're in a terminal, show the menu
if sys.stdin.isatty() and not args.quiet: if sys.stdin.isatty() and not args.quiet:
sel = _interactive_menu() sel = _interactive_menu()
if sel == "install": if sel == "install":
@@ -809,9 +811,10 @@ def main() -> int:
if not args.quiet: if not args.quiet:
print("Platform bootstrap completed successfully.") print("Platform bootstrap completed successfully.")
return 0 return 0
else: elif sel == 0:
return int(sel or 0) return 0
else: elif not args.no_delegate:
# Default non-interactive behavior: delegate to platform script
rc = run_platform_bootstrap(repo_root) rc = run_platform_bootstrap(repo_root)
if rc != 0: if rc != 0:
return rc return rc
@@ -1360,7 +1363,7 @@ if (Test-Path (Join-Path $repo 'CLI.py')) {
'if [ -z "${MM_NO_UPDATE:-}" ] && [ -d "$REPO/.git" ] && command -v git >/dev/null 2>&1; then\n' 'if [ -z "${MM_NO_UPDATE:-}" ] && [ -d "$REPO/.git" ] && command -v git >/dev/null 2>&1; then\n'
' AUTO_UPDATE="true"\n' ' AUTO_UPDATE="true"\n'
' if [ -f "$REPO/config.conf" ]; then\n' ' if [ -f "$REPO/config.conf" ]; then\n'
' if grep -qiE \'auto_update\s*=\s*(false|no|off|0)\' "$REPO/config.conf"; then\n' " if grep -qiE 'auto_update[[:space:]]*=[[:space:]]*(false|no|off|0)' \"$REPO/config.conf\"; then\n"
' AUTO_UPDATE="false"\n' ' AUTO_UPDATE="false"\n'
' fi\n' ' fi\n'
' fi\n' ' fi\n'