Skip to content

Commit 2cbe60e

Browse files
StephDCMingcongBai
authored andcommitted
Create 99-aprilfool
April fool - a dirty implementation, but should run only once before reboot and run only on 04-01. The text needed to show is not done so I just put Welcome to the summoner's rift there.
1 parent 48eb9f0 commit 2cbe60e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bashrc.d/99-aprilfool

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# 99-April Fool
2+
# By Staph. aureus
3+
# Install a run-once Easter Egg into /tmp in 2017-04-01
4+
5+
if [ $(date +%F) == "2017-04-01" ]; then
6+
if [ ! -f /tmp/scat ] ; then
7+
echo \#! /bin/bash >/tmp/scat
8+
echo "while IFS= read -rn1 a; do printf %s \"\${a:-\$'\n'}\"; sleep \$1; done" >> /tmp/scat
9+
echo sleep \$2 >> /tmp/scat
10+
chmod +x /tmp/scat
11+
echo Welcome to the summoner\'s rift. | /tmp/scat 0.1 0
12+
fi
13+
fi

0 commit comments

Comments
 (0)