f
This commit is contained in:
@@ -780,6 +780,8 @@ def main() -> int:
|
||||
print()
|
||||
print("✅ Installation check complete!")
|
||||
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:
|
||||
sel = _interactive_menu()
|
||||
if sel == "install":
|
||||
@@ -809,9 +811,10 @@ def main() -> int:
|
||||
if not args.quiet:
|
||||
print("Platform bootstrap completed successfully.")
|
||||
return 0
|
||||
else:
|
||||
return int(sel or 0)
|
||||
else:
|
||||
elif sel == 0:
|
||||
return 0
|
||||
elif not args.no_delegate:
|
||||
# Default non-interactive behavior: delegate to platform script
|
||||
rc = run_platform_bootstrap(repo_root)
|
||||
if rc != 0:
|
||||
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'
|
||||
' AUTO_UPDATE="true"\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'
|
||||
' fi\n'
|
||||
' fi\n'
|
||||
|
||||
Reference in New Issue
Block a user