Skip to content

Commit b6199e5

Browse files
committed
feat: only display once a week
1 parent 0f55d5a commit b6199e5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/opencollective.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22

3+
function printDonationHeader {
34
echo ''
45
echo -e ' \x1B[1m***\x1B[0m Thank you for using webpack! \x1B[1m***\x1B[0m'
56
echo ''
@@ -11,3 +12,11 @@ echo ''
1112
echo -e ' \x1B[1m***\x1B[0m'
1213
echo ''
1314
exit 0
15+
}
16+
17+
LANG=C DAY=$(date +"%a")
18+
19+
if [ "$DAY" == "Mon" ];
20+
then
21+
printDonationHeader
22+
fi

0 commit comments

Comments
 (0)