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 Jan 28, 2019
1 parent e548da0 commit 186f683
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/opencollective.sh
@@ -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 186f683

Please sign in to comment.