fix(onboarding): greeting prints at true end, not buried mid-install
setup.sh (the README-default path) ran install.sh as a mid-flow step, so its author greeting scrolled past under stages 4-7 and users never saw it. - scripts/hello.sh: single source of the bilingual greeting. - install.sh: greet only when run directly; silent under MNEMAZINE_FROM_SETUP. - setup.sh: pass that flag, print the greeting itself as the last line.
This commit is contained in:
+3
-28
@@ -68,31 +68,6 @@ echo "Inbox: $INBOX"
|
||||
echo "Vault: $VAULT"
|
||||
echo "Open the vault folder in Obsidian."
|
||||
|
||||
cat <<'EOF'
|
||||
|
||||
────────────────────────────────────────────────────────────
|
||||
Привет! Это Philipp — автор Мнемазины.
|
||||
|
||||
Спасибо, что ставите мою разработку. Я делал её, чтобы сырьё
|
||||
превращалось в проверенное, готовое к работе знание — и рад,
|
||||
что теперь она будет помогать и вам.
|
||||
|
||||
★ Если зашло — поставьте звезду на GitHub, мне это правда важно:
|
||||
https://github.com/zarubinphil/Mnemazine
|
||||
💡 Есть идея, как сделать лучше? Откройте issue или PR —
|
||||
предлагайте улучшения, я читаю каждое.
|
||||
|
||||
— — —
|
||||
|
||||
Hi! This is Philipp — the author of Mnemazine.
|
||||
|
||||
Thank you for installing my project. I built it to turn raw
|
||||
input into verified, ready-to-use knowledge — glad it will now
|
||||
help you too.
|
||||
|
||||
★ If you like it, please star it on GitHub — it truly helps:
|
||||
https://github.com/zarubinphil/Mnemazine
|
||||
💡 Got an idea to make it better? Open an issue or PR —
|
||||
improvements are always welcome, I read every one.
|
||||
────────────────────────────────────────────────────────────
|
||||
EOF
|
||||
# Greet only when run directly. Under setup.sh this is a mid-flow sub-step;
|
||||
# setup.sh prints the greeting itself at its true end so it is not buried.
|
||||
[ "${MNEMAZINE_FROM_SETUP:-0}" = "1" ] || bash "$ROOT/scripts/hello.sh"
|
||||
|
||||
Reference in New Issue
Block a user