Skip to content

Commit

Permalink
feat: only display once a week
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Feb 5, 2019
1 parent 0f55d5a commit b6199e5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/opencollective.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

function printDonationHeader {
echo ''
echo -e ' \x1B[1m***\x1B[0m Thank you for using webpack! \x1B[1m***\x1B[0m'
echo ''
Expand All @@ -11,3 +12,11 @@ echo ''
echo -e ' \x1B[1m***\x1B[0m'
echo ''
exit 0
}

LANG=C DAY=$(date +"%a")

if [ "$DAY" == "Mon" ];
then
printDonationHeader
fi

0 comments on commit b6199e5

Please sign in to comment.