Skip to content

feat: ask for donations during december #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions motds/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ motd:

@echo "" >> motd
@echo "Report issues at https://termux.dev/issues" >> motd
@echo "Termux needs your help! Donations help fund development and infrastructure import for Termux's continued existence" >> motd
@echo "Consider donating at https://termux.dev/en/donate" >> motd
17 changes: 15 additions & 2 deletions motds/motd.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ else
\e[1mWelcome to Termux!\e[0m

\e[1mDocs:\e[0m \e[4mhttps://termux.dev/docs\e[0m
\e[1mDonate:\e[0m \e[4mhttps://termux.dev/donate\e[0m
\e[1mCommunity:\e[0m \e[4mhttps://termux.dev/community\e[0m
"
if [ "$(date +%m)" != "12" ]; then
motd+="\e[1mDonate:\e[0m \e[4mhttps://termux.dev/donate\e[0m
"
fi
motd+="\e[1mCommunity:\e[0m \e[4mhttps://termux.dev/community\e[0m

\e[1mTermux version:\e[0m ${TERMUX_VERSION-Unknown}
"
Expand Down Expand Up @@ -58,4 +62,13 @@ motd+="
${motd_indent}Report issues at \e[4mhttps://termux.dev/issues\e[0m
"

if [ "$(date +%m)" = "12" ]; then

motd+="
\e[1m\e[31mTermux needs your help! Donations help fund development and infrastructure import for Termux's continued existence\e[0m
\e[1mConsider donating at \e[34mhttps://termux.dev/en/donate\e[0m
"

fi

echo -e "$motd"
Loading